'''simple docstring'''





import pytest

import datasets


# Import fixture modules as plugins
SCREAMING_SNAKE_CASE_:     List[Any]  =["""tests.fixtures.files""", """tests.fixtures.hub""", """tests.fixtures.fsspec"""]





def 	lowerCAmelCase_				(					snake_case_       : Optional[int]					,    snake_case_       : Optional[int]			)    ->      Tuple:


     '''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 	lowerCAmelCase_				(					snake_case_       : List[str]			)    ->      Optional[int]:


     '''simple docstring'''




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





@pytest.fixture(autouse=_snake_case			)
def 	lowerCAmelCase_				(					snake_case_       : Optional[Any]					,    snake_case_       : Dict			)    ->      Any:


     '''simple docstring'''




     UpperCAmelCase_           =   tmp_path_factory.getbasetemp() / '''cache'''
     UpperCAmelCase_           =   test_hf_cache_home / '''datasets'''
     UpperCAmelCase_           =   test_hf_cache_home / '''metrics'''
     UpperCAmelCase_           =   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			)			)
     UpperCAmelCase_           =   test_hf_datasets_cache / '''downloads'''
     monkeypatch.setattr("datasets.config.DOWNLOADED_DATASETS_PATH"					,    str(_snake_case			)			)
     UpperCAmelCase_           =   test_hf_datasets_cache / '''downloads''' / '''extracted'''
     monkeypatch.setattr("datasets.config.EXTRACTED_DATASETS_PATH"					,    str(_snake_case			)			)





@pytest.fixture(autouse=_snake_case					,    scope="session"			)
def 	lowerCAmelCase_				(					)    ->      Any:


     '''simple docstring'''




     datasets.disable_progress_bar()





@pytest.fixture(autouse=_snake_case			)
def 	lowerCAmelCase_				(					snake_case_       : Tuple			)    ->      Union[str, Any]:


     '''simple docstring'''




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






@pytest.fixture
def 	lowerCAmelCase_				(					snake_case_       : Any			)    ->      Optional[Any]:


     '''simple docstring'''




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








"""simple docstring"""
from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
			from .pipeline_vq_diffusion import LearnedClassifierFreeSamplingEmbeddings, VQDiffusionPipeline





