code: def read_multirc(dir_path):
      df_dict = dict()
      for fold in ["train", "val", "test"]:
          columns = [
              "passage",
              "question",
              "answer",
              "psg_idx",
              "qst_idx",
              "ans_idx",
          ]
          if fold != "test":
              columns.append("label")
          out = []
          jsonl_path = os.path.join(dir_path, "{}.jsonl".format(fold))
          with open(jsonl_path, "r") as f:
              for line in f:
                  sample = json.loads(line.strip())
                  psg_idx = sample["idx"]
                  sample = json.loads(line.strip())
                  passage = sample["passage"]["text"]
                  for qa in sample["passage"]["questions"]:
                      qst_idx = qa["idx"]
                      question = qa["question"]
                      for ans in qa["answers"]:
                          ans_idx = ans["idx"]
                          answer = ans["text"]
                          if fold == "test":
                              out.append(
                                  (
                                      passage,
                                      question,
                                      answer,
                                      psg_idx,
                                      qst_idx,
                                      ans_idx,
                                  )
                              )
                          else:
                              label = ans["label"]
                              out.append(
                                  (
                                      passage,
                                      question,
                                      answer,
                                      psg_idx,
                                      qst_idx,
                                      ans_idx,
                                      label,
                                  )
                              )
          df = pd.DataFrame(out, columns=columns)
          df_dict[fold] = df
      return df_dict, None
  
imports: import os
  import shutil
  import argparse
  import zipfile
  import json
  import pandas
  import pyarrow
  import pyarrow.json
  from autogluon_contrib_nlp.utils.misc import download, load_checksum_stats
  from autogluon_contrib_nlp.base import get_data_home_dir
  from autogluon_contrib_nlp.data.tokenizers import WhitespaceTokenizer
label_desc: Use image node_id 16 for calling a global function with example usage: read_multirc(dir_path) and returns: df_dict,  None