code: def _get_dpath_by_task_version(dpath, opt):
      if opt["fits_task_version"] == "v1" and opt.get(
          "unseen_task", False
      ):
          return os.path.join(dpath, "human_model_chats_unseen")
  
      if opt["fits_task_version"] == "v1":
          return os.path.join(dpath, "human_model_chats")
      if opt["fits_task_version"] == "v2":
          return os.path.join(dpath, "human_model_chats_v2")
  
imports: import parlai.core.build_data
  import os
  from parlai.utils.logging import logger
  from parlai.core.build_data import DownloadableFile
label_desc: Use image node_id 1 for calling a global function with example usage: _get_dpath_by_task_version(dpath, opt) and returns: os, os, os