code: def importBaseDescription(path, config):
      global baseDescriptionImportCount, _config, subExpDir
      if not os.path.isabs(path):
          # grab the path to the file doing the import
          import inspect
  
          callingFrame = inspect.stack()[1][0]
          callingFile = callingFrame.f_globals["__file__"]
          subExpDir = os.path.dirname(callingFile)
          path = os.path.normpath(os.path.join(subExpDir, path))
  
      # print "Importing from: %s" % path
  
      # stash the config in a place where the loading module can find it.
      _config = config
      mod = imp.load_source(
          "pf_base_description%d" % baseDescriptionImportCount, path
      )
      # don't want to override __file__ in our caller
      mod.__base_file__ = mod.__file__
      del mod.__file__
      baseDescriptionImportCount += 1
      return mod
  
file_path: nupic-legacy/src/nupic/frameworks/opf/exp_description_helpers.py
imports: import os
  import imp
  from nupic.data.dict_utils import rUpdate
label_desc: Use image node_id 1 for calling a global function with example usage: importBaseDescription(path, config) and returns: mod