docs: def pre_init():
      """
      The pre_init function of the plugin. Here rafcon-classes can be extended/monkey-patched or completely substituted.
      A example is given with the rafcon_execution_hooks_plugin.
      :return:
      """
  
      logger.info("Run pre-initiation hook of {} plugin.".format(__file__.split(os.path.sep)[-2]))
  
      # Example: Monkey-Path rafcon.core.script.Script class to print additional log-message while execution
      from rafcon.core.script import Script
      old_execute_method = Script.execute
  
      def new_execute_method(self, state, inputs=None, outputs=None, backward_execution=False):
          logger.debug("patched version of Script class is used.")
          result = old_execute_method(self, state, inputs, outputs, backward_execution)
          logger.debug("patched version of Script execute-method is finished with result: {}.".format(result))
          return result
  
      Script.execute = new_execute_method