code: def _path(opt):
      build(opt)
      buildImage(opt)
      dt = opt["datatype"].split(":")[0]
  
      if dt == "train":
          suffix = "train_train"
          img_suffix = os.path.join("train2014", "COCO_train2014_")
      elif dt == "valid":
          suffix = "train_valid"
          img_suffix = os.path.join("train2014", "COCO_train2014_")
      elif dt == "test":
          suffix = "val_test"
          img_suffix = os.path.join("val2014", "COCO_val2014_")
      else:
          raise RuntimeError("Not valid datatype.")
  
      data_path = os.path.join(
          opt["datapath"],
          "VisDial-v0.9",
          "visdial_0.9_" + suffix + ".json",
      )
  
      image_path = os.path.join(
          opt["datapath"], "COCO-IMG-2014", img_suffix
      )
  
      return data_path, image_path
  
file_path: ParlAI/parlai/tasks/visdial/agents.py
imports: from parlai.core.teachers import DialogTeacher
  from .build import build
  from parlai.utils.io import PathManager
  from parlai.tasks.coco_caption.build_2014 import buildImage
  from PIL import Image
  import json
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _path(opt) and returns: data_path,  image_path