
"""simple docstring"""






from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCAmelCase        =				logging.get_logger(__name__)



class 			lowercase					( lowercase__		):
			lowercase        =     '''timm_backbone'''






			def __init__(self  :	Optional[Any]      ,SCREAMING_SNAKE_CASE_  :	int=None      ,SCREAMING_SNAKE_CASE_  :	Union[str, Any]=3      ,SCREAMING_SNAKE_CASE_  :	List[Any]=True      ,SCREAMING_SNAKE_CASE_  :	Union[str, Any]=True      ,SCREAMING_SNAKE_CASE_  :	int=None      ,**SCREAMING_SNAKE_CASE_  :	Any      ,)       ->	Union[str, Any]:





				"""simple docstring"""


				super().__init__(**SCREAMING_SNAKE_CASE_			)
				lowerCAmelCase												=  backbone
				lowerCAmelCase												=  num_channels
				lowerCAmelCase												=  features_only
				lowerCAmelCase												=  use_pretrained_backbone
				lowerCAmelCase												=  True
				lowerCAmelCase												=  out_indices if out_indices is not None else (-1,)




"""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""")


