





"""simple docstring"""




from __future__ import annotations

from enum import Enum




class 					_a		( _lowerCAmelCase							):
				UpperCamelCase								=       24
				UpperCamelCase								=       21
				UpperCamelCase								=       18
				UpperCamelCase								=       15
				UpperCamelCase								=       12
				UpperCamelCase								=       9
				UpperCamelCase								=       6
				UpperCamelCase								=       3
				UpperCamelCase								=       2
				UpperCamelCase								=       1
				UpperCamelCase								=       -1
				UpperCamelCase								=       -2
				UpperCamelCase								=       -3
				UpperCamelCase								=       -6
				UpperCamelCase								=       -9
				UpperCamelCase								=       -12
				UpperCamelCase								=       -15
				UpperCamelCase								=       -18
				UpperCamelCase								=       -21
				UpperCamelCase								=       -24




class 					_a		( _lowerCAmelCase							):
				UpperCamelCase								=       8
				UpperCamelCase								=       7
				UpperCamelCase								=       6
				UpperCamelCase								=       5
				UpperCamelCase								=       4
				UpperCamelCase								=       3
				UpperCamelCase								=       2
				UpperCamelCase								=       1





def 			a_							(				_lowercase			,		_lowercase			,		_lowercase			,		):
						if isinstance(_lowercase			,		_lowercase  ):
												_UpperCamelCase     :   List[str]      =       SIUnit[known_prefix.lower()]
						if isinstance(_lowercase			,		_lowercase  ):
												_UpperCamelCase     :   Optional[Any]      =       SIUnit[unknown_prefix.lower()]
						_UpperCamelCase     :   float      =       known_amount * (
						    10 ** (known_prefix.value - unknown_prefix.value)
						)
						return unknown_amount





def 			a_							(				_lowercase			,		_lowercase			,		_lowercase			,		):
						if isinstance(_lowercase			,		_lowercase  ):
												_UpperCamelCase     :   Optional[int]      =       BinaryUnit[known_prefix.lower()]
						if isinstance(_lowercase			,		_lowercase  ):
												_UpperCamelCase     :   Tuple      =       BinaryUnit[unknown_prefix.lower()]
						_UpperCamelCase     :   float      =       known_amount * (
						    2 ** ((known_prefix.value - unknown_prefix.value) * 10)
						)
						return unknown_amount


if __name__ == "__main__":
						import doctest

						doctest.testmod()







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__lowerCamelCase   	=  {'''configuration_visual_bert''': ['''VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''VisualBertConfig''']}

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __lowerCamelCase   	=  [
           '''VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST''',
           '''VisualBertForMultipleChoice''',
           '''VisualBertForPreTraining''',
           '''VisualBertForQuestionAnswering''',
           '''VisualBertForRegionToPhraseAlignment''',
           '''VisualBertForVisualReasoning''',
           '''VisualBertLayer''',
           '''VisualBertModel''',
           '''VisualBertPreTrainedModel''',
       ]


if TYPE_CHECKING:
       from .configuration_visual_bert import VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, VisualBertConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_visual_bert import (
                  VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
                  VisualBertForMultipleChoice,
                  VisualBertForPreTraining,
                  VisualBertForQuestionAnswering,
                  VisualBertForRegionToPhraseAlignment,
                  VisualBertForVisualReasoning,
                  VisualBertLayer,
                  VisualBertModel,
                  VisualBertPreTrainedModel,
              )


else:
       import sys

       __lowerCamelCase   	=  _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



