def METHOD_NAME(identity_key, id_type, email, password=None, *, session: "Session"):
    """
    Creates a user identity.
    :param identity_key: The identity key name. For example x509 DN, or a username.
    :param id_type: The type of the authentication (x509, gss, userpass, ssh, saml)
    :param email: The Email address associated with the identity.
    :param password: If type==userpass, this sets the password.
    :param session: The database session in use.
    """
    return identity.METHOD_NAME(identity_key, IdentityType[id_type.upper()], email, password=password, session=session)