code: def get_dataset_directory(dataset_name, create_directory=True):
      """Gets the path to the directory of given dataset.
  
      The generated path is just a concatenation of the global root directory
      (see :func:`set_dataset_root` for how to change it) and the dataset name.
      The dataset name can contain slashes, which are treated as path separators.
  
      Args:
          dataset_name (str): Name of the dataset.
          create_directory (bool): If True (default), this function also creates
              the directory at the first time. If the directory already exists,
              then this option is ignored.
  
      Returns:
          str: Path to the dataset directory.
  
      """
      path = os.path.join(_dataset_root, dataset_name)
      if create_directory:
          try:
              os.makedirs(path)
          except OSError:
              if not os.path.isdir(path):
                  raise
      return path
  
file_path: chainer/chainer/dataset/download.py
imports: import hashlib
  import os
  import shutil
  import sys
  import filelock
  from six.moves.urllib import request
  from chainer import utils
label_desc: Use image node_id 3 for calling a global function with example usage: get_dataset_directory(dataset_name, create_directory) and returns: path