code: def _read_data(path, stage, match_type, mode="both"):
      if stage == "train":
          if mode == "part1":
              path = path.joinpath(
                  "train/SemEval2016-Task3-CQA-QL-train-part1.xml"
              )
              data = _load_data_by_type(path, match_type)
          elif mode == "part2":
              path = path.joinpath(
                  "train/SemEval2016-Task3-CQA-QL-train-part2.xml"
              )
              data = _load_data_by_type(path, match_type)
          else:
              part1 = path.joinpath(
                  "train/SemEval2016-Task3-CQA-QL-train-part1.xml"
              )
              p1 = _load_data_by_type(part1, match_type)
              part2 = path.joinpath(
                  "train/SemEval2016-Task3-CQA-QL-train-part1.xml"
              )
              p2 = _load_data_by_type(part2, match_type)
              data = pd.concat([p1, p2], ignore_index=True)
          return matchzoo.pack(data)
      elif stage == "dev":
          path = path.joinpath("dev/SemEval2016-Task3-CQA-QL-dev.xml")
          data = _load_data_by_type(path, match_type)
          return matchzoo.pack(data)
      else:
          path = path.joinpath("SemEval2016-Task3-CQA-QL-test.xml")
          data = _load_data_by_type(path, match_type)
          return matchzoo.pack(data)
  
file_path: MatchZoo/matchzoo/datasets/cqa_ql_16/load_data.py
imports: import xml
  import typing
  from pathlib import Path
  import keras
  import pandas
  import matchzoo
label_desc: Use image node_id 5 for calling a global function with example usage: _read_data(path, stage, match_type, mode) and returns: matchzoo, matchzoo, matchzoo