input: 
  def generate_password() -> str:
      """Generate a random password of 8 characters composed of numbers, letters, and special characters.
      >>> generate_password()
      Output will be a string of 8 characters.
      """
  
output:     import random
      import string
      
      characters = string.ascii_letters + string.digits + string.punctuation
      password = ''.join(random.choice(characters) for _ in range(8))
      return password