code: def run(self):
      self.is_running_now = True
      print("work_is_running")
      for i in range(1, 10):
          time.sleep(1)
          if i % 5 == 0:
              raise Exception(f"invalid_value_of_i_{i}")
          print(f"good_value_of_i_{i}")
  
file_path: pytorch-lightning/tests/integrations_app/apps/collect_failures/app.py
imports: import logging
  import sys
  import time
  from lightning.app import LightningApp, LightningFlow, LightningWork
label_desc: Use image node_id 2 for calling the SimpleWork obj's underlying member method code with example usage: obj.run() without return types