input: def generate_random_string() -> str:
      """Generate a random string of length 8 made of uppercase letters and numbers.
      >>> len(generate_random_string())
      8
      >>> all(c in string.ascii_uppercase + string.digits for c in generate_random_string())
      True
      """
      import string
      import random
  
      length = 8
      chars = string.ascii_uppercase + string.digits
      password = ''.join(random.choice(chars) for i in range(length))
  
      return password
output:     import string
      import random
  
      length = 8
      chars = string.ascii_uppercase + string.digits
      password = ''.join(random.choice(chars) for i in range(length))
  
      return password