code: def sw1c2r(data_root):
      dts_train = Dataset(os.path.join(data_root, "train.jsonl"))
      dts_valid = Dataset(os.path.join(data_root, "valid.jsonl"))
      dts_test = Dataset(
          os.path.join(data_root, "test_multi_ref.json"), "test"
      )
      datasets = {
          "train": dts_train,
          "val": dts_valid,
          "test": dts_test,
      }
      return datasets
  
file_path: texar/examples/hierarchical_dialog/sw_loader.py
imports: import os
  import json
  from json_lines import reader
  from nltk.tokenize import WordPunctTokenizer
  from sklearn.feature_extraction.text import TfidfVectorizer
  import texar.tf
  from config_data import data_root
label_desc: Use image node_id 1 for calling a global function with example usage: sw1c2r(data_root) and returns: datasets