input: def generate_random_string(length: int) -> str:
      """ Generates a random string of given length.
      >>> print(generate_random_string(10))
      'afk3Bd8lKj'
      """
      import random
      random_characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
      random_string = ''.join(random.choices(random_characters, k=length))
      return random_string
output:     import random
      random_characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
      random_string = ''.join(random.choices(random_characters, k=length))
      return random_string