code: def _path(opt):
      build(opt)
      suffix = ""
      dt = opt["datatype"].split(":")[0]
      if dt == "train":
          suffix = "train"
      elif dt == "test":
          suffix = "test"
      elif dt == "valid":
          suffix = "dev"
      return os.path.join(
          opt["datapath"],
          "WikiMovies",
          "movieqa",
          "questions",
          "wiki_entities",
          "wiki-entities_qa_{suffix}.txt".format(suffix=suffix),
      )
  
file_path: ParlAI/parlai/tasks/wikimovies/agents.py
imports: from parlai.core.teachers import FbDeprecatedDialogTeacher
  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