






"""simple docstring"""



import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline

@pytest.mark.integration
def 			_snake_case    (					)    ->     Optional[int]:
							with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT  ):
														with pytest.raises(lowerCamelCase__  ):
																					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 			_snake_case    (					)    ->     str:
							with offline(OfflineSimulationMode.CONNECTION_FAILS  ):
														with pytest.raises(requests.exceptions.ConnectionError  ):
																					requests.request("GET"    ,						"https://huggingface.co"  )

def 			_snake_case    (					)    ->     Tuple:
							with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1  ):
														with pytest.raises(lowerCamelCase__  ):
																					http_head("https://huggingface.co"  )











"""simple docstring"""



from typing import TYPE_CHECKING

from ...utils import _LazyModule


A__	:    Tuple			 = {'tokenization_byt5': ['ByT5Tokenizer']}


if TYPE_CHECKING:
						from .tokenization_byta import ByTaTokenizer
else:
						import sys

						A__	:    Dict			 = _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)



