code: def _path(opt):
      # Build the data if it doesn't exist.
      build(opt)
      dt = opt["datatype"].split(":")[0]
      if dt == "test":
          warn_once(
              "WARNING: Test set not included. Setting datatype to valid."
          )
          dt = "valid"
      return os.path.join(opt["datapath"], "CoQA", dt + ".txt")
  
file_path: ParlAI/parlai/tasks/coqa/agents.py
imports: from parlai.core.teachers import ParlAIDialogTeacher
  from parlai.utils.misc import warn_once
  from .build import build
  import copy
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _path(opt) and returns: os