


'''simple docstring'''

import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline





@pytest.mark.integration
def lowerCamelCase      (      ):





	"""simple docstring"""







	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 lowerCamelCase      (      ):





	"""simple docstring"""







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





def lowerCamelCase      (      ):





	"""simple docstring"""







	with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1		):
		with pytest.raises(lowerCAmelCase		):
			http_head('https://huggingface.co'		)



'''simple docstring'''

def lowerCamelCase      (      lowerCAmelCase    :     str		):





	"""simple docstring"""







	if not all(x.isalpha() for x in string		):
		raise ValueError('String must only contain alphabetic characters.'		)

	__magic_name__	:   int					     =					sorted(string.lower()		)
	return len(lowerCAmelCase		) == len(set(lowerCAmelCase		)		)


if __name__ == "__main__":
							lowerCAmelCase				:Any        =      input('''Enter a string ''').strip()

							lowerCAmelCase				:List[Any]        =      is_isogram(input_str)
							print(F'{input_str} is {"an" if isogram else "not an"} isogram.')