def same_family(first_person, second_person) -> bool:
    """Check whether two person have the same family or not.

    Args:
        first_person (Person): The first input person.
        second_person (Person: The second input person.

    Returns:
        bool: True, if the families match. Otherwise, returns False.
    """
    if first_person.family is second_person.family:
        return True
    return False