code: def setup(
      self,
      trainer: "pl.Trainer",
      pl_module: "pl.LightningModule",
      stage: str,
  ) -> None:
      self.work.model_hparams = self._sanitize_model_init_args(
          dict(**pl_module.hparams)
      )
  
imports: import inspect
  from typing import TYPE_CHECKING, Any, Dict, Union
  import lightning.pytorch
  from lightning.app.storage.path import Path
  from lightning.app.utilities.app_helpers import Logger
  from lightning.pytorch import Callback
  from lightning.pytorch.callbacks.progress.progress_bar import get_standard_metrics
  from lightning.pytorch.loggers import TensorBoardLogger, WandbLogger
  from lightning.pytorch.utilities.parsing import collect_init_args
  from core.state import ProgressBarState, TrainerState
label_desc: Use image node_id 3 for calling the PLAppSummary obj's underlying member method code with example usage: obj.setup(trainer, pl_module, stage) without return types