input: Write a python function to generate a random password of length 10 with a mix of letters, digits, and special characters.
  assert len(gen_password()) == 10
  assert any(char.isdigit() for char in gen_password())
  assert any(char.isalpha() for char in gen_password())
  assert any(char in '!@#$%^&*' for char in gen_password())
output: import random
  import string
  
  def gen_password():
      characters = string.ascii_letters + string.digits + '!@#$%^&*'
      password = ''.join(random.choice(characters) for _ in range(10))
      return password