code: def _run_event_methods(self, tag, stage=None):
          
          import inspect
          from ambry.bundle.events import _runable_for_event
  
          funcs = []
  
          for func_name, f in inspect.getmembers(self, predicate=inspect.ismethod):
              if _runable_for_event(f, tag, stage):
                  funcs.append(f)
  
          for func in funcs:
              func()
docs: Run code in the bundle that is marked with events.