input: from typing import Tuple
  
  def generate_password(length: int) -> str:
      """ Generate a random password of given length.
      Character set includes letters (a-z, A-Z) and digits (0-9).
      >>> generate_password(8)
      'aB3fGh7k'
      >>> generate_password(12)
      '6pQ2rT8sXu3z'
      """
      import string
      import random
      
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(length))
output:     import string
      import random
      
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(length))