input: Write a python function to generate a random password of length 5 consisting of letters, digits, and special characters.
  assert len(generate_password()) == 5
  assert any(c.islower() for c in generate_password())
  assert any(c.isupper() for c in generate_password())
  assert any(c.isdigit() for c in generate_password())
  assert any(c in '!@#$%^&*()' for c in generate_password())
output: import random
  import string
  
  def generate_password():
      characters = string.ascii_letters + string.digits + '!@#$%^&*()'
      password = ''.join(random.choice(characters) for _ in range(5))
      while (not any(c.islower() for c in password) or
             not any(c.isupper() for c in password) or
             not any(c.isdigit() for c in password) or
             not any(c in '!@#$%^&*()' for c in password)):
          password = ''.join(random.choice(characters) for _ in range(5))
      return password