docstr: Called after the python script is executed.
docstr_tok: ["Called","after","the","python","script","is","executed","."]
code: def on_after_run(self, res: Any):
      """Called after the python script is executed."""
      for name in self.outputs:
          setattr(self, name, Payload(res[name]))
  
imports: import os
  import signal
  import sys
  from copy import deepcopy
  from typing import Any, Dict, List, Optional, Union
  from typing_extensions import TypedDict
  from lightning.app.core.work import LightningWork
  from lightning.app.storage.drive import Drive
  from lightning.app.storage.payload import Payload
  from lightning.app.utilities.app_helpers import Logger, _collect_child_process_pids
  from lightning.app.utilities.packaging.tarfile import clean_tarfile, extract_tarfile
  from lightning.app.utilities.tracer import Tracer
label_desc: Use image node_id 2 for calling the TracerPythonScript obj's underlying member method code with example usage: obj.on_after_run(res) without return types