code: def read_wic(dir_path):
      df_dict = dict()
      meta_data = dict()
      meta_data["entities1"] = {
          "type": "entity",
          "attrs": {"parent": "sentence1"},
      }
      meta_data["entities2"] = {
          "type": "entity",
          "attrs": {"parent": "sentence2"},
      }
  
      for fold in ["train", "val", "test"]:
          if fold != "test":
              columns = [
                  "sentence1",
                  "sentence2",
                  "entities1",
                  "entities2",
                  "label",
              ]
          else:
              columns = [
                  "sentence1",
                  "sentence2",
                  "entities1",
                  "entities2",
              ]
          jsonl_path = os.path.join(dir_path, "{}.jsonl".format(fold))
          df = read_jsonl_superglue(jsonl_path)
          out = []
          for idx, row in df.iterrows():
              sentence1 = row["sentence1"]
              sentence2 = row["sentence2"]
              start1 = row["start1"]
              end1 = row["end1"]
              start2 = row["start2"]
              end2 = row["end2"]
              if fold == "test":
                  out.append(
                      [
                          sentence1,
                          sentence2,
                          {"start": start1, "end": end1},
                          {"start": start2, "end": end2},
                      ]
                  )
              else:
                  label = row["label"]
                  out.append(
                      [
                          sentence1,
                          sentence2,
                          {"start": start1, "end": end1},
                          {"start": start2, "end": end2},
                          label,
                      ]
                  )
          df = pd.DataFrame(out, columns=columns)
          df_dict[fold] = df
      return df_dict, meta_data
  
imports: import os
  import shutil
  import argparse
  import zipfile
  import json
  import pandas
  import pyarrow
  import pyarrow.json
  from gluonnlp.utils.misc import download, load_checksum_stats
  from gluonnlp.base import get_data_home_dir
  from gluonnlp.data.tokenizers import WhitespaceTokenizer
label_desc: Use image node_id 18 for calling a global function with example usage: read_wic(dir_path) and returns: df_dict,  meta_data