def METHOD_NAME(self):
    from lightning.app.core import LightningFlow, LightningWork
    return {
        "works": {key: item.METHOD_NAME for key, item in self.items() if isinstance(item, LightningWork)},
        "flows": {key: item.METHOD_NAME for key, item in self.items() if isinstance(item, LightningFlow)},
    }