code: def _path(task, opt):
      # Build the data if it doesn't exist.
      build(opt)
      prefix = os.path.join(
          opt["datapath"], "dialog-bAbI-plus", "dialog-bAbI-plus-tasks"
      )
      suffix = ""
      dt = opt["datatype"].split(":")[0]
      if dt == "train":
          suffix = "trn"
      elif dt == "test":
          suffix = "tst"
      elif dt == "valid":
          suffix = "dev"
      datafile = os.path.join(
          prefix,
          "{tsk}-{type}.txt".format(tsk=tasks[int(task)], type=suffix),
      )
  
      cands_datafile = os.path.join(
          prefix, "dialog-babi-candidates.txt"
      )
  
      return datafile, cands_datafile
  
file_path: ParlAI/parlai/tasks/dialog_babi_plus/agents.py
imports: import os
  from parlai.core.teachers import FbDeprecatedDialogTeacher
  from parlai.tasks.dialog_babi_plus.build import build
label_desc: Use image node_id 1 for calling a global function with example usage: _path(task, opt) and returns: datafile,  cands_datafile