def METHOD_NAME(self, pred: dict) -> Tuple[str, TyDiLabel]:
    """
    Converts a prediction dict into an example_id, label pair.
    """
    key = pred['example_id']
    value = TyDiLabel(
            example_id=pred['example_id'],
            passage_answer_index=pred['passage_index'],
            minimal_answer_span=Span(
                pred['start_position'],
                pred['end_position'])
            ,
            yes_no_answer=self._bool_target(
                TargetType(pred['yes_no_answer'])
            ),
            passage_score=pred['confidence_score'] ,
            minimal_score=pred['confidence_score'] ,
            language=None,
            passage_span=None,
            question_text='',
            plaintext='',
        )
    return key, value