import pytest

import datasets


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







def 						A__  (					__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 						A__  (					__A	):







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







@pytest.fixture(autouse=UpperCamelCase__	)
def 						A__  (					__A   , __A	):







    '''simple docstring'''
    _lowerCamelCase     :		Optional[Any] 						=						tmp_path_factory.getbasetemp() / """cache"""
    _lowerCamelCase     :		str 						=						test_hf_cache_home / """datasets"""
    _lowerCamelCase     :		str 						=						test_hf_cache_home / """metrics"""
    _lowerCamelCase     :		Optional[int] 						=						test_hf_cache_home / """modules"""
    monkeypatch.setattr("""datasets.config.HF_DATASETS_CACHE"""   , str(UpperCamelCase__	)	)
    monkeypatch.setattr("""datasets.config.HF_METRICS_CACHE"""   , str(UpperCamelCase__	)	)
    monkeypatch.setattr("""datasets.config.HF_MODULES_CACHE"""   , str(UpperCamelCase__	)	)
    _lowerCamelCase     :		int 						=						test_hf_datasets_cache / """downloads"""
    monkeypatch.setattr("""datasets.config.DOWNLOADED_DATASETS_PATH"""   , str(UpperCamelCase__	)	)
    _lowerCamelCase     :		List[str] 						=						test_hf_datasets_cache / """downloads""" / """extracted"""
    monkeypatch.setattr("""datasets.config.EXTRACTED_DATASETS_PATH"""   , str(UpperCamelCase__	)	)







@pytest.fixture(autouse=UpperCamelCase__   , scope="""session"""	)
def 						A__  (					):







    '''simple docstring'''
    datasets.disable_progress_bar()







@pytest.fixture(autouse=UpperCamelCase__	)
def 						A__  (					__A	):







    '''simple docstring'''
    monkeypatch.setattr("""datasets.config.HF_UPDATE_DOWNLOAD_COUNTS"""   , UpperCamelCase__	)







@pytest.fixture
def 						A__  (					__A	):







    '''simple docstring'''
    monkeypatch.setattr("""sqlalchemy.util.deprecations.SILENCE_UBER_WARNING"""   , UpperCamelCase__	)





import math







def 						A__  (					__A	):







    '''simple docstring'''
    assert isinstance(__A   , __A	) and (
        number >= 0
    ), "'number' must been an int and positive"

    if 1 < number < 4:
        # 2 and 3 are primes
        return True
    elif number < 2 or not number % 2:
        # Negatives, 0, 1 and all even numbers are not primes
        return False

    _lowerCamelCase     :		List[Any] 						=						range(3   , int(math.sqrt(__A	) + 1	)   , 2	)
    return not any(not number % i for i in odd_numbers	)







def 						A__  (					__A   , __A=1   , **__A	):







    '''simple docstring'''
    _lowerCamelCase     :		Dict 						=						factor * value
    _lowerCamelCase     :		str 						=						value

    while not is_prime(__A	):
        value += 1 if not ("desc" in kwargs and kwargs["desc"] is True) else -1

    if value == first_value_val:
        return next_prime(value + 1   , **__A	)
    return value




