code: def get_dataset_path(*args):
      """
      Get the path to some dataset under ``$TENSORPACK_DATASET``.
  
      Args:
          args: strings to be joined to form path.
  
      Returns:
          str: path to the dataset.
      """
      d = os.environ.get("TENSORPACK_DATASET", None)
      if d is None:
          d = os.path.join(os.path.expanduser("~"), "tensorpack_data")
          if execute_only_once():
              logger.warn(
                  "Env var $TENSORPACK_DATASET not set, using {} for datasets.".format(
                      d
                  )
              )
          if not os.path.isdir(d):
              mkdir_p(d)
              logger.info("Created the directory {}.".format(d))
      assert os.path.isdir(d), d
      return os.path.join(d, *args)
  
file_path: tensorpack/tensorpack/utils/fs.py
imports: import errno
  import os
  import tqdm
  from six.moves import urllib
  from .None import logger
  from .utils import execute_only_once
label_desc: Use image node_id 4 for calling a global function with example usage: get_dataset_path() and returns: os