code: def generate_reset_password_token(user):
      
      password_hash = hash_data(user.password) if user.password else None
      data = [str(user.id), password_hash]
      return _security.reset_serializer.dumps(data)
docs: Generates a unique reset password token for the specified user.
  
      :param user: The user to work with