def _contains_sample(pairs_list, sample):
    """Returns pairs_list that contains the sample"""
    pairs_list_f = [x for x in pairs_list
                    if sample in [x[0][0], x[1][0]]]
    return pairs_list_f