from ..utils import DummyObject, requires_backends

class    snake_case       (   metaclass=UpperCamelCase_    ):
  lowercase_								=  ['torch', 'torchsde']




  def __init__(   self  :						Tuple  ,			*a_  :						Any  ,			**a_  :						List[Any]					)->							Any:




       """simple docstring"""
       requires_backends(self  ,			['torch', 'torchsde']					)




  @classmethod
  def 						__lowercase(   cls  :						Optional[Any]  ,			*a_  :						Tuple  ,			**a_  :						Optional[Any]					)->							int:




       """simple docstring"""
       requires_backends(cls  ,			['torch', 'torchsde']					)




  @classmethod
  def 						__lowercase(   cls  :						List[Any]  ,			*a_  :						Tuple  ,			**a_  :						str					)->							str:




       """simple docstring"""
       requires_backends(cls  ,			['torch', 'torchsde']					)







'''simple docstring'''
import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline







@pytest.mark.integration
def       a_				(	):
							with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT ):
														with pytest.raises(UpperCamelCase_ ):
																					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       a_				(	):
							with offline(OfflineSimulationMode.CONNECTION_FAILS ):
														with pytest.raises(requests.exceptions.ConnectionError ):
																					requests.request("GET"						,  "https://huggingface.co" )







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





