def user_info(user):
    """
    Get the serialized version of a user's information.

    Args:
        user:
            The user to get the serialized information of.

    Returns:
        A dictionary containing the serialized representation of the
        given user's information.
    """
    if not user:
        return None

    return {
        "first_name": user.first_name,
        "image": None,
        "last_name": user.last_name,
    }