def get_dataset_directory(dataset_name, create_directory=True):
 path = os.path.join(_dataset_root, dataset_name)
 if create_directory:
  try:
   os.makedirs(path)
  except OSError:
   pass
 return path

def get_dataset_directory ( dataset_name , create_directory = True ) : path = os . path . join ( _dataset_root , dataset_name ) if create_directory : try : os . makedirs ( path ) except OSError : pass return path
gets the path to the directory of given dataset .