code: def __init__(self):
      super().__init__(cache_calls=False)
      # Attributes are registered automatically in the state.
      self.counter = 0
  
file_path: pytorch-lightning/docs/source-app/core_api/lightning_app/app.py
imports: from lightning.app import LightningWork, LightningFlow, LightningApp
  from lightning.app.utilities.app_helpers import pretty_state
label_desc: Use image node_id 1 to create a new Work object from inherited base classes: LightningWork with example: obj = Work()