input: from typing import List
  
  def generate_password() -> str:
      """Generates a random password of length 8, which consists of alphanumeric characters and at least one special character.
      >>> generate_password()
      'A1@bc3$5'  # Example output
      """
output:     import random
      import string
  
      characters = string.ascii_letters + string.digits
      special_characters = "!@#$%^&*()_+"
      
      password = [random.choice(characters) for _ in range(6)]
      password.append(random.choice(special_characters))
      password.append(random.choice(characters))
      
      random.shuffle(password)
      return ''.join(password)