def get_target_name(label):
    """
    Try to extract the target_name from a given PDS label.

    Parameters
    ----------
    label : Object
        Any type of pds object that can be indexed

    Returns
    -------
    target_name : str
        The defined target_name from the label. If this is None a target name
        could not be pulled from the label
    """
    try:
        target_name = label['TARGET_NAME']
    except KeyError:
        return None

    return target_name