


"""simple docstring"""







import pytest

import datasets


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


def 					lowercase      (    A_  ,       A_	)->				Union[str, Any]:
  '''simple docstring'''







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


def 					lowercase      (    A_	)->				Optional[Any]:
  '''simple docstring'''







  config.addinivalue_line("markers"  ,       "torchaudio_latest: mark test to run with torchaudio>=0.12"	)


@pytest.fixture(autouse=A_	)
def 					lowercase      (    A_  ,       A_	)->				Optional[int]:
  '''simple docstring'''







  a						:		int											=      tmp_path_factory.getbasetemp() / "cache"
  a						:		str											=      test_hf_cache_home / "datasets"
  a						:		Tuple											=      test_hf_cache_home / "metrics"
  a						:		List[Any]											=      test_hf_cache_home / "modules"
  monkeypatch.setattr("datasets.config.HF_DATASETS_CACHE"  ,       str(A_	)	)
  monkeypatch.setattr("datasets.config.HF_METRICS_CACHE"  ,       str(A_	)	)
  monkeypatch.setattr("datasets.config.HF_MODULES_CACHE"  ,       str(A_	)	)
  a						:		Any											=      test_hf_datasets_cache / "downloads"
  monkeypatch.setattr("datasets.config.DOWNLOADED_DATASETS_PATH"  ,       str(A_	)	)
  a						:		Dict											=      test_hf_datasets_cache / "downloads" / "extracted"
  monkeypatch.setattr("datasets.config.EXTRACTED_DATASETS_PATH"  ,       str(A_	)	)


@pytest.fixture(autouse=A_  ,       scope="session"	)
def 					lowercase      (    )->				Tuple:
  '''simple docstring'''







  datasets.disable_progress_bar()


@pytest.fixture(autouse=A_	)
def 					lowercase      (    A_	)->				Optional[int]:
  '''simple docstring'''







  monkeypatch.setattr("datasets.config.HF_UPDATE_DOWNLOAD_COUNTS"  ,       A_	)







@pytest.fixture
def 					lowercase      (    A_	)->				List[str]:
  '''simple docstring'''







  monkeypatch.setattr("sqlalchemy.util.deprecations.SILENCE_UBER_WARNING"  ,       A_	)










"""simple docstring"""







import warnings

from ...utils import logging
from .image_processing_dpt import DPTImageProcessor


__lowercase    =				logging.get_logger(__name__)






class 						_A  (  _a  ):







    """simple docstring"""




    def __init__( self    :   List[Any]    ,			*__UpperCAmelCase    :   int    ,			**__UpperCAmelCase    :   List[Any]):
      warnings.warn(
          "The class DPTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
          " use DPTImageProcessor instead."    ,			__UpperCAmelCase    ,			)
      super().__init__(*__UpperCAmelCase    ,			**__UpperCAmelCase)






