code: def _path(opt):
      build(opt)
      print("opt is", opt["datatype"])
      dt = opt["datatype"].split(":")[0]
  
      if dt == "valid":
          dt = "dev"
      elif dt != "train" and dt != "test":
          raise RuntimeError("Not valid datatype.")
  
      prefix = os.path.join(
          opt["datapath"], "nlvr", "nlvr-master", "nlvr"
      )
      questions_path = os.path.join(prefix, dt, dt + ".json")
      images_path = os.path.join(prefix, dt, "images")
  
      return questions_path, images_path
  
file_path: ParlAI/parlai/tasks/nlvr/agents.py
imports: from parlai.core.teachers import DialogTeacher
  from .build import build
  import json
  import os
  import glob
label_desc: Use image node_id 1 for calling a global function with example usage: _path(opt) and returns: questions_path,  images_path