from typing import Tuple


def participant_names(redcap_record: dict) -> Tuple[str, ...]:
    """
    Extracts a tuple of names for the participant from the given
    *redcap_record*.
    """
    if redcap_record['participant_first_name']:
        return (redcap_record['participant_first_name'], redcap_record['participant_last_name'])
    else:
        return (redcap_record['part_name_sp'],)