


'''simple docstring'''






import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline







@pytest.mark.integration
def     UpperCamelCase_      (   ):
  '''simple docstring'''





  with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT ):
    with pytest.raises(A__ ):
      requests.request("""GET"""							,   """https://huggingface.co""" )
    with pytest.raises(requests.exceptions.ConnectTimeout ):
      requests.request("""GET"""							,   """https://huggingface.co"""							,   timeout=1.0 )







@pytest.mark.integration
def     UpperCamelCase_      (   ):
  '''simple docstring'''





  with offline(OfflineSimulationMode.CONNECTION_FAILS ):
    with pytest.raises(requests.exceptions.ConnectionError ):
      requests.request("""GET"""							,   """https://huggingface.co""" )







def     UpperCamelCase_      (   ):
  '''simple docstring'''





  with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1 ):
    with pytest.raises(A__ ):
      http_head("""https://huggingface.co""" )







'''simple docstring'''






from ..utils import DummyObject, requires_backends






class        __snake_case	(       metaclass=_SCREAMING_SNAKE_CASE):







    """simple docstring"""



    lowercase       			= ['note_seq']

    def __init__(       self   :  Tuple   ,						*lowerCamelCase   :  Optional[int]   ,						**lowerCamelCase   :  Tuple		)       ->  Any:
      requires_backends(self   ,						["""note_seq"""]		)

    @classmethod
    def __lowercase       (       cls   :  Optional[Any]   ,						*lowerCamelCase   :  List[Any]   ,						**lowerCamelCase   :  Dict		)       ->  List[Any]:
      requires_backends(cls   ,						["""note_seq"""]		)





    @classmethod
    def __lowercase       (       cls   :  Union[str, Any]   ,						*lowerCamelCase   :  Union[str, Any]   ,						**lowerCamelCase   :  List[Any]		)       ->  Optional[int]:
      requires_backends(cls   ,						["""note_seq"""]		)



