





from __future__ import annotations

from collections import namedtuple


def 							SCREAMING_SNAKE_CASE__  (			__a      ,       __a      ,       __a      ):
	snake_case_						:	Optional[Any]      =		namedtuple('result'      ,       'name value'      )
	if (voltage, current, power).count(0      ) != 1:
		raise ValueError('Only one argument must be 0'      )
	elif power < 0:
		raise ValueError(
		    'Power cannot be negative in any electrical/electronics system'      )
	elif voltage == 0:
		return result('voltage'      ,       power / current      )
	elif current == 0:
		return result('current'      ,       power / voltage      )
	elif power == 0:
		return result('power'      ,       float(round(abs(voltage * current      )      ,       2      )      )      )
	else:
		raise ValueError('Exactly one argument must be 0'      )


if __name__ == "__main__":
						import doctest

						doctest.testmod()








from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
	if not (is_transformers_available() and is_torch_available() and is_transformers_version('''>=''', '''4.25.0''')):
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	from ...utils.dummy_torch_and_transformers_objects import UnCLIPImageVariationPipeline, UnCLIPPipeline
else:
	from .pipeline_unclip import UnCLIPPipeline
	from .pipeline_unclip_image_variation import UnCLIPImageVariationPipeline
	from .text_proj import UnCLIPTextProjModel
