def METHOD_NAME(self, policy):
    policy_attributes = [
        "allow_users_to_change_password",
        "expire_passwords",
        "hard_expiry",
        "max_password_age",
        "minimum_password_length",
        "password_reuse_prevention",
        "require_lowercase_characters",
        "require_numbers",
        "require_symbols",
        "require_uppercase_characters",
    ]
    ret = {}
    for attr in policy_attributes:
        ret[attr] = getattr(policy, attr)
    return ret