def _getPredictionsGenerator(examplesDir, exampleName):
sys.path.insert(<NUM_LIT:0>, os.path.join(examplesDir, exampleName))<EOL>modName = "<STR_LIT>" % exampleName<EOL>mod = __import__(modName, fromlist=["<STR_LIT>"])<EOL>return getattr(mod, "<STR_LIT>")<EOL>
Get predictions generator for one of the quick-start example. 

.. note::

  The examples are not part of the nupic package so we need to manually 
  append the example module path to syspath.

:param examplesDir: 
  (str) path to the example parent directory.
:param exampleName: 
  (str) name of the example. E.g: "opf", "network", "algo".
:return predictionsGenerator: 
  (function) predictions generator functions.