


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


_snake_case	:						Union[str, Any]         =							{
    "configuration_bridgetower": [
        "BRIDGETOWER_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "BridgeTowerConfig",
        "BridgeTowerTextConfig",
        "BridgeTowerVisionConfig",
    ],
    "processing_bridgetower": ["BridgeTowerProcessor"],
}

try:
			if not is_vision_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_snake_case	:						List[Any]         =							["BridgeTowerImageProcessor"]

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_snake_case	:						List[str]         =							[
			    "BRIDGETOWER_PRETRAINED_MODEL_ARCHIVE_LIST",
			    "BridgeTowerForContrastiveLearning",
			    "BridgeTowerForImageAndTextRetrieval",
			    "BridgeTowerForMaskedLM",
			    "BridgeTowerModel",
			    "BridgeTowerPreTrainedModel",
			]


if TYPE_CHECKING:
			from .configuration_bridgetower import (
			    BRIDGETOWER_PRETRAINED_CONFIG_ARCHIVE_MAP,
			    BridgeTowerConfig,
			    BridgeTowerTextConfig,
			    BridgeTowerVisionConfig,
			)
			from .processing_bridgetower import BridgeTowerProcessor

			try:
						if not is_vision_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .image_processing_bridgetower import BridgeTowerImageProcessor

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_bridgetower import (
						    BRIDGETOWER_PRETRAINED_MODEL_ARCHIVE_LIST,
						    BridgeTowerForContrastiveLearning,
						    BridgeTowerForImageAndTextRetrieval,
						    BridgeTowerForMaskedLM,
						    BridgeTowerModel,
						    BridgeTowerPreTrainedModel,
						)


else:
			import sys

			_snake_case	:						List[Any]         =							_LazyModule(__name__, globals()["__file__"], _import_structure)



"""simple docstring"""






UpperCAmelCase        =				8.3_144_598




def __magic_name__	(				_lowerCamelCase:		float,					_lowerCamelCase:		float			)					->						float:

	'''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
					UpperCAmelCase        =				3_0_0
					UpperCAmelCase        =				2_8
					UpperCAmelCase        =				rms_speed_of_molecule(temperature, molar_mass)
					print(f"""Vrms of Nitrogen gas at 300 K is {vrms} m/s""")


