code: from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available
  
  
  lowercase__    :       Union[str, Any]						=			{
      '''configuration_flava''': [
          '''FLAVA_PRETRAINED_CONFIG_ARCHIVE_MAP''',
          '''FlavaConfig''',
          '''FlavaImageCodebookConfig''',
          '''FlavaImageConfig''',
          '''FlavaMultimodalConfig''',
          '''FlavaTextConfig''',
      ],
  }
  
  try:
  	if not is_vision_available():
  		raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
  	pass
  else:
  	lowercase__    :       List[str]						=			['''FlavaFeatureExtractor''']
  	lowercase__    :       str						=			['''FlavaImageProcessor''']
  	lowercase__    :       int						=			['''FlavaProcessor''']
  
  try:
  	if not is_torch_available():
  		raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
  	pass
  else:
  	lowercase__    :       Union[str, Any]						=			[
  	    '''FLAVA_PRETRAINED_MODEL_ARCHIVE_LIST''',
  	    '''FlavaForPreTraining''',
  	    '''FlavaImageCodebook''',
  	    '''FlavaImageModel''',
  	    '''FlavaModel''',
  	    '''FlavaMultimodalModel''',
  	    '''FlavaPreTrainedModel''',
  	    '''FlavaTextModel''',
  	]
  
  if TYPE_CHECKING:
  	from .configuration_flava import (
  	    FLAVA_PRETRAINED_CONFIG_ARCHIVE_MAP,
  	    FlavaConfig,
  	    FlavaImageCodebookConfig,
  	    FlavaImageConfig,
  	    FlavaMultimodalConfig,
  	    FlavaTextConfig,
  	)
  
  	try:
  		if not is_vision_available():
  			raise OptionalDependencyNotAvailable()
  	except OptionalDependencyNotAvailable:
  		pass
  	else:
  		from .feature_extraction_flava import FlavaFeatureExtractor
  		from .image_processing_flava import FlavaImageProcessor
  		from .processing_flava import FlavaProcessor
  
  	try:
  		if not is_torch_available():
  			raise OptionalDependencyNotAvailable()
  	except OptionalDependencyNotAvailable:
  		pass
  	else:
  		from .modeling_flava import (
  		    FLAVA_PRETRAINED_MODEL_ARCHIVE_LIST,
  		    FlavaForPreTraining,
  		    FlavaImageCodebook,
  		    FlavaImageModel,
  		    FlavaModel,
  		    FlavaMultimodalModel,
  		    FlavaPreTrainedModel,
  		    FlavaTextModel,
  		)
  
  else:
  	import sys
  
  	lowercase__    :       Any						=			_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)
  
  
  
  
style_context: from __future__ import annotations
  
  from enum import Enum
  
  
  
  
  class      lowercase_						(						UpperCamelCase_		):
  
  
  
  	"""simple docstring"""
  
  
  
  
  
  	UpperCAmelCase_						:      str     =       24
  	UpperCAmelCase_						:      Dict     =       21
  	UpperCAmelCase_						:      List[str]     =       18
  	UpperCAmelCase_						:      Optional[int]     =       15
  	UpperCAmelCase_						:      str     =       12
  	UpperCAmelCase_						:      Union[str, Any]     =       9
  	UpperCAmelCase_						:      List[Any]     =       6
  	UpperCAmelCase_						:      Any     =       3
  	UpperCAmelCase_						:      List[str]     =       2
  	UpperCAmelCase_						:      Any     =       1
  	UpperCAmelCase_						:      Any     =       -1
  	UpperCAmelCase_						:      Any     =       -2
  	UpperCAmelCase_						:      Optional[int]     =       -3
  	UpperCAmelCase_						:      List[Any]     =       -6
  	UpperCAmelCase_						:      Optional[int]     =       -9
  	UpperCAmelCase_						:      str     =       -12
  	UpperCAmelCase_						:      Union[str, Any]     =       -15
  	UpperCAmelCase_						:      List[str]     =       -18
  	UpperCAmelCase_						:      str     =       -21
  	UpperCAmelCase_						:      Dict     =       -24
  
  
  
  
  class      lowercase_						(						UpperCamelCase_		):
  
  
  
  	"""simple docstring"""
  
  
  
  
  
  	UpperCAmelCase_						:      List[str]     =       8
  	UpperCAmelCase_						:      Union[str, Any]     =       7
  	UpperCAmelCase_						:      int     =       6
  	UpperCAmelCase_						:      int     =       5
  	UpperCAmelCase_						:      Any     =       4
  	UpperCAmelCase_						:      Dict     =       3
  	UpperCAmelCase_						:      Tuple     =       2
  	UpperCAmelCase_						:      Any     =       1
  
  def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__     ,						snake_case__     ,						)  ->			float:
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	SIUnit[known_prefix.lower()]
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	SIUnit[unknown_prefix.lower()]
  							lowerCAmelCase				=	known_amount * (
  							    1_0 ** (known_prefix.value - unknown_prefix.value)
  							)
  							return unknown_amount
  
  def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__     ,						snake_case__     ,						)  ->			float:
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	BinaryUnit[known_prefix.lower()]
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	BinaryUnit[unknown_prefix.lower()]
  							lowerCAmelCase				=	known_amount * (
  							    2 ** ((known_prefix.value - unknown_prefix.value) * 1_0)
  							)
  							return unknown_amount
  
  
  if __name__ == "__main__":
  	import doctest
  
  	doctest.testmod()
  
  
  
  