code: def _path(opt):
      build(opt)
  
      dt = opt["datatype"].split(":")[0]
  
      if dt == "train":
          suffix = "train"
      # Using matched set as valid and mismatched set as test
      elif dt == "valid":
          suffix = "dev"
      elif dt == "test":
          suffix = "test"
      else:
          raise RuntimeError("Not valid datatype.")
  
      data_path = os.path.join(
          opt["datapath"], "QA-SRL", FILE_START + suffix + FILE_END
      )
      return data_path
  
file_path: ParlAI/parlai/tasks/qasrl/agents.py
imports: from parlai.core.teachers import DialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import os
  import copy
label_desc: Use image node_id 1 for calling a global function with example usage: _path(opt) and returns: data_path