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