def METHOD_NAME(self):
    from lightning.app.core import LightningFlow, LightningWork
    works = [item for item in self if isinstance(item, LightningWork)]
    children = [item for item in self if isinstance(item, LightningFlow)]
    return {
        "works": {_prepare_name(w): w.METHOD_NAME for w in works},
        "flows": {_prepare_name(flow): flow.METHOD_NAME for flow in children},
    }