code: def add_chinese_references(dataset, ref_file):
      with open(ref_file, "r", encoding="utf-8") as f:
          refs = [
              json.loads(line)
              for line in f.read().splitlines()
              if (len(line) > 0 and not line.isspace())
          ]
      assert len(dataset) == len(refs)
  
      dataset_dict = {c: dataset[c] for c in dataset.column_names}
      dataset_dict["chinese_ref"] = refs
      return Dataset.from_dict(dataset_dict)
  
file_path: transformers/examples/research_projects/mlm_wwm/run_mlm_wwm.py
imports: import json
  import logging
  import math
  import os
  import sys
  from dataclasses import dataclass, field
  from typing import Optional
  from datasets import Dataset, load_dataset
  import transformers
  from transformers import CONFIG_MAPPING, MODEL_FOR_MASKED_LM_MAPPING, AutoConfig, AutoModelForMaskedLM, AutoTokenizer, DataCollatorForWholeWordMask, HfArgumentParser, Trainer, TrainingArguments, set_seed
  from transformers.trainer_utils import get_last_checkpoint, is_main_process
label_desc: Use image node_id 1 for calling a global function with example usage: add_chinese_references(dataset, ref_file) and returns: Dataset