




import torch



def       UpperCAmelCase__  (     ):



  if torch.cuda.is_available():
    lowercase    :Optional[Any]      	=						torch.cuda.device_count()
  else:
    lowercase    :Any      	=						0
  print(F"Successfully ran on {num_gpus} GPUs"   )


if __name__ == "__main__":
     main()









def       UpperCAmelCase__  (     lowerCamelCase = "The quick brown fox jumps over the lazy dog",			):
  lowercase    :Dict      	=						set()

  # Replace all the whitespace in our sentence
  lowercase    :Optional[int]      	=						input_str.replace(" ",			""   )
  for alpha in input_str:
    if "a" <= alpha.lower() <= "z":
      frequency.add(alpha.lower()   )
  return len(lowerCamelCase   ) == 26



def       UpperCAmelCase__  (     lowerCamelCase = "The quick brown fox jumps over the lazy dog",			):
  lowercase    :Optional[Any]      	=						[False] * 26
  for char in input_str:
    if char.islower():
      lowercase    :Union[str, Any]      	=						True
    elif char.isupper():
      lowercase    :int      	=						True
  return all(lowerCamelCase   )



def       UpperCAmelCase__  (     lowerCamelCase = "The quick brown fox jumps over the lazy dog",			):
  return len({char for char in input_str.lower() if char.isalpha()}   ) == 26



def       UpperCAmelCase__  (     ):
  from timeit import timeit

  lowercase    :Optional[Any]      	=						"from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest"
  print(timeit("is_pangram()",			setup=lowerCamelCase   )   )
  print(timeit("is_pangram_faster()",			setup=lowerCamelCase   )   )
  print(timeit("is_pangram_fastest()",			setup=lowerCamelCase   )   )
  # 5.348480500048026, 2.6477354579837993, 1.8470395830227062
  # 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
     import doctest

     doctest.testmod()
     benchmark()



