

import pytest

import datasets


# Import fixture modules as plugins
_SCREAMING_SNAKE_CASE  :						Dict         =    ['''tests.fixtures.files''', '''tests.fixtures.hub''', '''tests.fixtures.fsspec''']
def        UpperCAmelCase_     (		_A   ,	_A       ):





     '''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        UpperCAmelCase_     (		_A       ):





     '''simple docstring'''




     config.addinivalue_line('''markers'''   ,	'''torchaudio_latest: mark test to run with torchaudio>=0.12'''       )
@pytest.fixture(autouse=_A       )
def        UpperCAmelCase_     (		_A   ,	_A       ):





     '''simple docstring'''




     SCREAMING_SNAKE_CASE__			=					tmp_path_factory.getbasetemp() / '''cache'''
     SCREAMING_SNAKE_CASE__			=					test_hf_cache_home / '''datasets'''
     SCREAMING_SNAKE_CASE__			=					test_hf_cache_home / '''metrics'''
     SCREAMING_SNAKE_CASE__			=					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       )       )
     SCREAMING_SNAKE_CASE__			=					test_hf_datasets_cache / '''downloads'''
     monkeypatch.setattr('''datasets.config.DOWNLOADED_DATASETS_PATH'''   ,	str(_A       )       )
     SCREAMING_SNAKE_CASE__			=					test_hf_datasets_cache / '''downloads''' / '''extracted'''
     monkeypatch.setattr('''datasets.config.EXTRACTED_DATASETS_PATH'''   ,	str(_A       )       )
@pytest.fixture(autouse=_A   ,	scope='''session'''       )
def        UpperCAmelCase_     (		):





     '''simple docstring'''




     datasets.disable_progress_bar()
@pytest.fixture(autouse=_A       )
def        UpperCAmelCase_     (		_A       ):





     '''simple docstring'''




     monkeypatch.setattr('''datasets.config.HF_UPDATE_DOWNLOAD_COUNTS'''   ,	_A       )







@pytest.fixture
def        UpperCAmelCase_     (		_A       ):





     '''simple docstring'''




     monkeypatch.setattr('''sqlalchemy.util.deprecations.SILENCE_UBER_WARNING'''   ,	_A       )





from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


_SCREAMING_SNAKE_CASE  :						Optional[Any]         =    datasets.utils.logging.get_logger(__name__)






class  UpperCAmelCase__	( folder_based_builder.FolderBasedBuilderConfig ):






  """simple docstring"""


  a     =      None
  a     =      None






class  UpperCAmelCase__	( folder_based_builder.FolderBasedBuilder ):






  """simple docstring"""


  a     =      datasets.Audio()
  a     =      "audio"
  a     =      AudioFolderConfig
  a     =      42  # definition at the bottom of the script
  a     =      AudioClassification(audio_column="audio"		,  label_column="label" )



_SCREAMING_SNAKE_CASE  :						str         =    [
    '''.aiff''',
    '''.au''',
    '''.avr''',
    '''.caf''',
    '''.flac''',
    '''.htk''',
    '''.svx''',
    '''.mat4''',
    '''.mat5''',
    '''.mpc2k''',
    '''.ogg''',
    '''.paf''',
    '''.pvf''',
    '''.raw''',
    '''.rf64''',
    '''.sd2''',
    '''.sds''',
    '''.ircam''',
    '''.voc''',
    '''.w64''',
    '''.wav''',
    '''.nist''',
    '''.wavex''',
    '''.wve''',
    '''.xi''',
    '''.mp3''',
    '''.opus''',
]
_SCREAMING_SNAKE_CASE  :						List[Any]         =    AUDIO_EXTENSIONS


