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


try:
							if not (is_transformers_available() and is_torch_available()):
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							from ...utils.dummy_torch_and_transformers_objects import *  # noqa F403
else:
							from .multicontrolnet import MultiControlNetModel
							from .pipeline_controlnet import StableDiffusionControlNetPipeline
							from .pipeline_controlnet_imgaimg import StableDiffusionControlNetImgaImgPipeline
							from .pipeline_controlnet_inpaint import StableDiffusionControlNetInpaintPipeline


if is_transformers_available() and is_flax_available():
							from .pipeline_flax_controlnet import FlaxStableDiffusionControlNetPipeline






lowercase__		:Any			  =   8.3_144_598



def 	UpperCamelCase   (							lowerCAmelCase__			,      lowerCAmelCase__		):
					'''simple docstring'''
					if temperature < 0:
										raise Exception('''Temperature cannot be less than 0 K'''		)
					if molar_mass <= 0:
										raise Exception('''Molar mass cannot be less than or equal to 0 kg/mol'''		)
					else:
										return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
							import doctest

							# run doctest
							doctest.testmod()

							# example
							lowercase__		:Optional[Any]			  =   300
							lowercase__		:List[Any]			  =   28
							lowercase__		:Dict			  =   rms_speed_of_molecule(temperature, molar_mass)
							print(F'Vrms of Nitrogen gas at 300 K is {vrms} m/s')




