code: 
  
  
  """simple docstring"""
  
  
  
  
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available
  
  
  __SCREAMING_SNAKE_CASE					=						{
      "configuration_flava": [
          "FLAVA_PRETRAINED_CONFIG_ARCHIVE_MAP",
          "FlavaConfig",
          "FlavaImageCodebookConfig",
          "FlavaImageConfig",
          "FlavaMultimodalConfig",
          "FlavaTextConfig",
      ],
  }
  
  try:
     if not is_vision_available():
        raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
     pass
  else:
     __SCREAMING_SNAKE_CASE					=						["FlavaFeatureExtractor"]
     __SCREAMING_SNAKE_CASE					=						["FlavaImageProcessor"]
     __SCREAMING_SNAKE_CASE					=						["FlavaProcessor"]
  
  try:
     if not is_torch_available():
        raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
     pass
  else:
     __SCREAMING_SNAKE_CASE					=						[
         "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
  
     __SCREAMING_SNAKE_CASE					=						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)
  
style_context: 
  
  
  """simple docstring"""
  
  
  
  
  import warnings
  
  from ...utils import logging
  from .image_processing_vit import ViTImageProcessor
  
  
  __SCREAMING_SNAKE_CASE					=						logging.get_logger(__name__)
  
  
  
  
  
  class __snake_case		(					_SCREAMING_SNAKE_CASE      ):
  
  
  
  
  
  
  
     """simple docstring"""
  
  
  
  
     def __init__(		self							:Tuple				,  *UpperCamelCase__							:Tuple				,  **UpperCamelCase__							:Any       ):
            warnings.warn(
                "The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
                " use ViTImageProcessor instead."				,  UpperCamelCase__				,  )
            super().__init__(*UpperCamelCase__				,  **UpperCamelCase__       )
  