code: def _read_data(path, stage):
      data = pd.read_csv(path, sep="\t", error_bad_lines=False)
      data = data.dropna(axis=0, how="any").reset_index(drop=True)
      if stage in ["train", "dev"]:
          df = pd.DataFrame(
              {
                  "id_left": data["qid1"],
                  "id_right": data["qid2"],
                  "text_left": data["question1"],
                  "text_right": data["question2"],
                  "label": data["is_duplicate"].astype(int),
              }
          )
      else:
          df = pd.DataFrame(
              {
                  "text_left": data["question1"],
                  "text_right": data["question2"],
              }
          )
      return matchzoo.pack(df)
  
imports: import typing
  from pathlib import Path
  import keras
  import pandas
  import matchzoo
label_desc: Use image node_id 3 for calling a global function with example usage: _read_data(path, stage) and returns: matchzoo