code: def works(self):
      from lightning.app.core import LightningFlow, LightningWork
  
      works = [
          item
          for item in self.values()
          if isinstance(item, LightningWork)
      ]
      for flow in [
          item
          for item in self.values()
          if isinstance(item, LightningFlow)
      ]:
          for child_work in flow.works(recurse=False):
              works.append(child_work)
      return works
  
file_path: pytorch-lightning/src/lightning/app/structures/dict.py
imports: import typing
  from lightning.app.utilities.app_helpers import _LightningAppRef, _set_child_name
label_desc: Use image node_id 3 for calling the Dict obj's underlying member method code with example usage: obj.works() and returns: works