docs: def functionFactory(in_code, name, defaults, globals_, imports):
      """Creates a function at runtime using binary compiled inCode"""
      def generatedFunction():
          pass
      generatedFunction.__code__ = marshal.loads(in_code)
      generatedFunction.__name__ = name
      generatedFunction.__defaults = defaults
      generatedFunction.__globals__.update(pickle.loads(globals_))
      for key, value in imports.items():
          imported_module = __import__(value)
          scoop.logger.debug("Dynamically loaded module {0}".format(value))
          generatedFunction.__globals__.update({key: imported_module})
      return generatedFunction