def _format_refs(self, input_path):
    """helper function to get the multi_reference for a file."""
    references = []
    with open(input_path, "r", encoding="utf-8") as input_file:
      for line in input_file:
        line = six.ensure_text(line, "utf-8")
        json_example = json.loads(line)
        multi_reference, multi_overlap_reference, multi_nonoverlap_reference = (
            prepare_references_for_eval.get_references(json_example, "dev"))
        del multi_overlap_reference, multi_nonoverlap_reference
        references.append([r.lower() for r in multi_reference])
    return references
helper function to get the multi_reference for a file.
language/totto/eval_pipeline_test.py