code: def __init__(self):
      super().__init__()
      self.w = Work(
          cloud_compute=CloudCompute("gpu", interruptible=True),
          start_with_flow=False,
          parallel=True,
      )
  
file_path: pytorch-lightning/examples/app/interruptible/app.py
imports: from time import sleep
  from lightning.app import CloudCompute, LightningApp, LightningFlow, LightningWork
label_desc: Use image node_id 1 to create a new Flow object from inherited base classes: LightningFlow with example: obj = Flow()