



"""simple docstring"""






import math
import unittest






def 			snake_case_    ( A_   :						int		):


       '''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 number % 2 == 0 or number % 3 == 0:
              # Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
              return False

       # All primes number are in format of 6k +/- 1
       for i in range(5,							int(math.sqrt(A_		) + 1		),							6		):
              if number % i == 0 or number % (i + 2) == 0:
                     return False
       return True






class 			__snake_case			(      unittest.TestCase):




  def 		SCREAMING_SNAKE_CASE							(					self	:		Optional[Any]						):






         """simple docstring"""






         self.assertTrue(is_prime(2						)						)
         self.assertTrue(is_prime(3						)						)
         self.assertTrue(is_prime(5						)						)
         self.assertTrue(is_prime(7						)						)
         self.assertTrue(is_prime(1_1						)						)
         self.assertTrue(is_prime(1_3						)						)
         self.assertTrue(is_prime(1_7						)						)
         self.assertTrue(is_prime(1_9						)						)
         self.assertTrue(is_prime(2_3						)						)
         self.assertTrue(is_prime(2_9						)						)




  def 		SCREAMING_SNAKE_CASE							(					self	:		Union[str, Any]						):






         """simple docstring"""






         with self.assertRaises(__lowerCAmelCase						):
                is_prime(-1_9						)
         self.assertFalse(
             is_prime(0						)		,   '''Zero doesn\'t have any positive factors, primes must have exactly two.'''		,   )
         self.assertFalse(
             is_prime(1						)		,   '''One only has 1 positive factor, primes must have exactly two.'''		,   )
         self.assertFalse(is_prime(2 * 2						)						)
         self.assertFalse(is_prime(2 * 3						)						)
         self.assertFalse(is_prime(3 * 3						)						)
         self.assertFalse(is_prime(3 * 5						)						)
         self.assertFalse(is_prime(3 * 5 * 7						)						)


if __name__ == "__main__":
   unittest.main()






import pytest

import datasets


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






def 		_A		(		_lowercase					,  _lowercase )					-> 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 		_A		(		_lowercase )					-> str:


     """simple docstring"""


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






@pytest.fixture(autouse=_lowercase )
def 		_A		(		_lowercase					,  _lowercase )					-> 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(_lowercase ) )
     monkeypatch.setattr('datasets.config.HF_METRICS_CACHE'					,  str(_lowercase ) )
     monkeypatch.setattr('datasets.config.HF_MODULES_CACHE'					,  str(_lowercase ) )
     __UpperCamelCase =			test_hf_datasets_cache / 'downloads'
     monkeypatch.setattr('datasets.config.DOWNLOADED_DATASETS_PATH'					,  str(_lowercase ) )
     __UpperCamelCase =			test_hf_datasets_cache / 'downloads' / 'extracted'
     monkeypatch.setattr('datasets.config.EXTRACTED_DATASETS_PATH'					,  str(_lowercase ) )






@pytest.fixture(autouse=_lowercase					,  scope='session' )
def 		_A		(		)					-> Dict:


     """simple docstring"""


     datasets.disable_progress_bar()






@pytest.fixture(autouse=_lowercase )
def 		_A		(		_lowercase )					-> Tuple:


     """simple docstring"""


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






@pytest.fixture
def 		_A		(		_lowercase )					-> Any:


     """simple docstring"""


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


