code: def _path(opt):
      build(opt)
  
      dt = opt["datatype"].split(":")[0]
  
      if not (dt == "train" or dt == "valid" or dt == "test"):
          raise RuntimeError("Not valid datatype.")
  
      suffix = dt
  
      data_path = os.path.join(
          opt["datapath"], "NarrativeQA", "narrative_qa", suffix
      )
  
      return data_path
  
file_path: ParlAI/parlai/tasks/narrative_qa/agents.py
imports: from parlai.core.teachers import DialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import os
  import copy
  import csv
  import glob
label_desc: Use image node_id 1 for calling a global function with example usage: _path(opt) and returns: data_path