input: def generate_random_password(length: int) -> str:
      """
      Generate a random string of a given length, consisting of uppercase letters and numbers.
  
      >>> generate_random_password(8)
      <random_string>
      >>> generate_random_password(12)
      <random_string>
      """
      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