"""simple docstring"""



import pytest

import datasets


# Import fixture modules as plugins
__lowercase		:		Optional[int]														=							["""tests.fixtures.files""", """tests.fixtures.hub""", """tests.fixtures.fsspec"""]





def    SCREAMING_SNAKE_CASE       (     snake_case,      snake_case):







     for item in items:
          if any(marker in item.keywords for marker in ['''integration''', '''unit''']):
               continue
          item.add_marker(pytest.mark.unit)





def    SCREAMING_SNAKE_CASE       (     snake_case):
     config.addinivalue_line('''markers''',      '''torchaudio_latest: mark test to run with torchaudio>=0.12''')





@pytest.fixture(autouse=snake_case)
def    SCREAMING_SNAKE_CASE       (     snake_case,      snake_case):
     __snake_case				=							tmp_path_factory.getbasetemp() / '''cache'''
     __snake_case				=							test_hf_cache_home / '''datasets'''
     __snake_case				=							test_hf_cache_home / '''metrics'''
     __snake_case				=							test_hf_cache_home / '''modules'''
     monkeypatch.setattr('''datasets.config.HF_DATASETS_CACHE''',      str(snake_case))
     monkeypatch.setattr('''datasets.config.HF_METRICS_CACHE''',      str(snake_case))
     monkeypatch.setattr('''datasets.config.HF_MODULES_CACHE''',      str(snake_case))
     __snake_case				=							test_hf_datasets_cache / '''downloads'''
     monkeypatch.setattr('''datasets.config.DOWNLOADED_DATASETS_PATH''',      str(snake_case))
     __snake_case				=							test_hf_datasets_cache / '''downloads''' / '''extracted'''
     monkeypatch.setattr('''datasets.config.EXTRACTED_DATASETS_PATH''',      str(snake_case))





@pytest.fixture(autouse=snake_case,      scope='''session''')
def    SCREAMING_SNAKE_CASE       (     ):
     datasets.disable_progress_bar()





@pytest.fixture(autouse=snake_case)
def    SCREAMING_SNAKE_CASE       (     snake_case):
     monkeypatch.setattr('''datasets.config.HF_UPDATE_DOWNLOAD_COUNTS''',      snake_case)





@pytest.fixture
def    SCREAMING_SNAKE_CASE       (     snake_case):
     monkeypatch.setattr('''sqlalchemy.util.deprecations.SILENCE_UBER_WARNING''',      snake_case)
"""simple docstring"""



from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


__lowercase		:		Dict														=							{
    "configuration_vision_text_dual_encoder": ["VisionTextDualEncoderConfig"],
    "processing_vision_text_dual_encoder": ["VisionTextDualEncoderProcessor"],
}


try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __lowercase		:		Optional[int]														=							["VisionTextDualEncoderModel"]


try:
       if not is_flax_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __lowercase		:		Optional[int]														=							["FlaxVisionTextDualEncoderModel"]

try:
       if not is_tf_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __lowercase		:		Any														=							["TFVisionTextDualEncoderModel"]


if TYPE_CHECKING:
       from .configuration_vision_text_dual_encoder import VisionTextDualEncoderConfig
       from .processing_vision_text_dual_encoder import VisionTextDualEncoderProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_vision_text_dual_encoder import VisionTextDualEncoderModel

       try:
              if not is_flax_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_flax_vision_text_dual_encoder import FlaxVisionTextDualEncoderModel

       try:
              if not is_tf_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_tf_vision_text_dual_encoder import TFVisionTextDualEncoderModel


else:
       import sys

       __lowercase		:		Tuple														=							_LazyModule(__name__, globals()["__file__"], _import_structure)