code: def get_dataset_path(*args):
      
      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)
docs: Get the path to some dataset under ``$TENSORPACK_DATASET``.
  
      Args:
          args: strings to be joined to form path.
  
      Returns:
          str: path to the dataset.