code: def _get_path(backend, is_learner):
      """Helper to get a path dir"""
      if backend in ["manual", "multiprocessing"]:
          path = os.path.join(os.getcwd(), ".mlens_testing_tmp")
          if os.path.exists(path):
              shutil.rmtree(path)
          os.mkdir(path)
      else:
          path = list() if is_learner else dict()
      return path
  
imports: from __future__ import division, print_function, with_statement
  import os
  import shutil
  import warnings
  from abc import abstractmethod
  import numpy
  from ..utils.utils import pickle_save, pickle_load
  from ..utils.dummy import OLS, LogisticRegression, Scale
  from ..externals.sklearn.base import clone
  from ..index import INDEXERS
  from ..ensemble.base import Sequential
  from ..estimators import LayerEnsemble
  from ..parallel import ParallelProcessing, Learner, Transformer, Layer, make_group, Pipeline
label_desc: Use image node_id 2 for calling a global function with example usage: _get_path(backend, is_learner) and returns: path