code: def run(self):
      # create dynamically the work at runtime
      if not hasattr(self, "work1"):
          self.work1 = WorkWithCustomDeps()
      if not hasattr(self, "work2"):
          self.work2 = WorkWithCustomBaseImage()
  
      self.work1.run()
      self.work2.run()
  
      if self.work1.has_succeeded and self.work2.has_succeeded:
          print("--- Custom Work Dependency checker End ----")
          self.stop()
  
file_path: pytorch-lightning/tests/integrations_app/apps/custom_work_dependencies/app.py
imports: import os
  from lightning.app import BuildConfig, CloudCompute, LightningApp, LightningFlow, LightningWork
label_desc: Use image node_id 1 for calling the CustomWorkBuildConfigChecker obj's underlying member method code with example usage: obj.run() without return types