input: 
  from typing import List, Optional
  import random
  import string
  
  def generate_random_password(length: int = 8) -> str:
      """Generate a random password with specified length consisting of numbers, 
      letters, and special characters.
      >>> generate_random_password(8)
      'aB3!jK9@'
      >>> generate_random_password(12)
      't7#H5R*9gX2$'
      """
      password_characters = string.ascii_letters + string.digits + string.punctuation
      return ''.join(random.choice(password_characters) for i in range(length))
  
output:     password_characters = string.ascii_letters + string.digits + string.punctuation
      return ''.join(random.choice(password_characters) for i in range(length))