
"""simple docstring"""






__UpperCAmelCase 					=    {
    "kilogram": 1,
    "gram": pow(10, 3),
    "milligram": pow(10, 6),
    "metric-ton": pow(10, -3),
    "long-ton": 0.0009842073,
    "short-ton": 0.0011023122,
    "pound": 2.2046244202,
    "stone": 0.1574731728,
    "ounce": 35.273990723,
    "carrat": 50_00,
    "atomic-mass-unit": 6.022136652e26,
}

__UpperCAmelCase 					=    {
    "kilogram": 1,
    "gram": pow(10, -3),
    "milligram": pow(10, -6),
    "metric-ton": pow(10, 3),
    "long-ton": 1016.04608,
    "short-ton": 907.184,
    "pound": 0.453592,
    "stone": 6.35029,
    "ounce": 0.0283495,
    "carrat": 0.0002,
    "atomic-mass-unit": 1.660540199e-27,
}






def 		_snake_case			(      lowercase__						:    str ,	lowercase__						:    str ,	lowercase__						:    float						)    ->							str:


			'''simple docstring'''





			if to_type not in KILOGRAM_CHART or from_type not in WEIGHT_TYPE_CHART:
						lowerCAmelCase_       :Dict     	=    (
						    f"""Invalid 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"""
						    f"""Supported values are: {", ".join(UpperCAmelCase__						)}"""
						)
						raise ValueError(UpperCAmelCase__						)
			return value * KILOGRAM_CHART[to_type] * WEIGHT_TYPE_CHART[from_type]


if __name__ == "__main__":
				import doctest

				doctest.testmod()











from typing import TYPE_CHECKING

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


A_		:  Any										=  {
    '''configuration_videomae''': ['''VIDEOMAE_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''VideoMAEConfig'''],
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     A_		:  List[Any]										=  [
         '''VIDEOMAE_PRETRAINED_MODEL_ARCHIVE_LIST''',
         '''VideoMAEForPreTraining''',
         '''VideoMAEModel''',
         '''VideoMAEPreTrainedModel''',
         '''VideoMAEForVideoClassification''',
     ]

try:
     if not is_vision_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     A_		:  str										=  ['''VideoMAEFeatureExtractor''']
     A_		:  Union[str, Any]										=  ['''VideoMAEImageProcessor''']

if TYPE_CHECKING:
     from .configuration_videomae import VIDEOMAE_PRETRAINED_CONFIG_ARCHIVE_MAP, VideoMAEConfig

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_videomae import (
              VIDEOMAE_PRETRAINED_MODEL_ARCHIVE_LIST,
              VideoMAEForPreTraining,
              VideoMAEForVideoClassification,
              VideoMAEModel,
              VideoMAEPreTrainedModel,
          )

     try:
          if not is_vision_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .feature_extraction_videomae import VideoMAEFeatureExtractor
          from .image_processing_videomae import VideoMAEImageProcessor

else:
     import sys

     A_		:  Dict										=  _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)

