class_docstr: The ScriptRunner executes the script using ``runpy`` and also patches the Trainer methods to inject additional
  code.
code: def on_exception(self, exception: BaseException) -> None:
      self.exception_message = traceback.format_exc()
      super().on_exception(exception)
  
file_path: pytorch-lightning/src/lightning/app/cli/pl-app-template/core/components/script_runner/script_runner.py
imports: import sys
  import traceback
  from typing import Any, Dict, List, Optional, Tuple
  from lightning.app.components.python import TracerPythonScript
  from lightning.app.storage.path import Path
  from lightning.app.utilities.packaging.build_config import BuildConfig, load_requirements
  from lightning.app.utilities.tracer import Tracer
label_desc: Use image node_id 4 for calling the ScriptRunner obj's underlying member method code with example usage: obj.on_exception(exception) without return types