def METHOD_NAME(self, ref: dict) -> Tuple[str, List[NQLabel]]:
    """
    Converts a reference dict into an example_id, [labels] pair.
    """
    if not all(ref['example_id'][0] == ref['example_id'][i] for i in range(len(ref['example_id']))):
        raise ValueError("Found mismatched examples")
    elif not all(ref['language'][0] == ref['language'][i] for i in range(len(ref['language']))):
        raise ValueError("Found mismatched languages")
    key = ref['example_id'][0]
    value = [
        NQLabel(
            example_id=ref['example_id'][i],
            long_answer_span=self._passage_index_to_long_span(ref['passage_index'][i]),
            short_answer_span_list=[NQSpan(
                start_byte=ref['start_position'][i],
                end_byte=ref['end_position'][i],
                start_token=-1,
                end_token=-1)]
            ,
            yes_no_answer=self._bool_target(
                TargetType(ref['yes_no_answer'][i])
            ),
            long_score=0,
            short_score=0,
        ) for i in range(len(ref['passage_index']))
    ]
    return key, value