



'''simple docstring'''



lowerCAmelCase_     :       Any								=						8.314_462  # Unit - J mol-1 K-1
def 					UpperCAmelCase   (						A  :				float					,		A  :				float					,		A  :				float				):
							if moles < 0 or kelvin < 0 or volume < 0:
														raise ValueError('''Invalid inputs. Enter positive value.'''				)
							return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume
def 					UpperCAmelCase   (						A  :				float					,		A  :				float					,		A  :				float				):
							if moles < 0 or kelvin < 0 or pressure < 0:
														raise ValueError('''Invalid inputs. Enter positive value.'''				)
							return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
							from doctest import testmod

							testmod()









'''simple docstring'''



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


try:
							if not (is_transformers_available() and is_torch_available()):
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							from ...utils.dummy_torch_and_transformers_objects import (
							    ImageTextPipelineOutput,
							    UniDiffuserPipeline,
							)
else:
							from .modeling_text_decoder import UniDiffuserTextDecoder
							from .modeling_uvit import UniDiffuserModel, UTransformeraDModel
							from .pipeline_unidiffuser import ImageTextPipelineOutput, UniDiffuserPipeline




