input: from typing import List
  
  
  def generate_password(length: int = 8) -> str:
      """Generate a random password of given length using letters, numbers, and special characters.
      >>> generate_password(8)
      'aB3%f9@x'
      >>> generate_password(12)
      '1Z$k2jLp8q#y'
      """
      import random
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password = "".join(random.sample(string, length))
      return password
output:     import random
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password = "".join(random.sample(string, length))
      return password