code: def get_cub():
      # To support ChainerMN, the target directory should be locked.
      with filelock.FileLock(
          os.path.join(
              download.get_dataset_directory("pfnet/chainercv/.lock"),
              "cub.lock",
          )
      ):
          data_root = download.get_dataset_directory(root)
          base_path = os.path.join(data_root, "CUB_200_2011")
          if os.path.exists(base_path):
              # skip downloading
              return base_path
  
          download_file_path = utils.cached_download(url)
          ext = os.path.splitext(url)[1]
          utils.extractall(download_file_path, data_root, ext)
      return base_path
  
file_path: chainercv/chainercv/datasets/cub/cub_utils.py
imports: import filelock
  import numpy
  import os
  from chainer.dataset import download
  from chainercv.chainer_experimental.datasets.sliceable import GetterDataset
  from chainercv import utils
label_desc: Use image node_id 1 for calling a global function with example usage: get_cub() and returns: base_path, base_path