docstr: Called before the python script is executed.
docstr_tok: ["Called","before","the","python","script","is","executed","."]
code: def on_before_run(self):
      """Called before the python script is executed."""
  
file_path: pytorch-lightning/src/lightning/app/components/python/popen.py
imports: import os
  import signal
  import subprocess
  import sys
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  from lightning.app.core.work import LightningWork
  from lightning.app.utilities.app_helpers import Logger, _collect_child_process_pids
  from lightning.app.utilities.tracer import Tracer
label_desc: Use image node_id 1 for calling the PopenPythonScript obj's underlying member method code with example usage: obj.on_before_run() without return types