def METHOD_NAME(self) -> List["SubmenuItem"]:
    if not self._submenu_function:
        return []
    METHOD_NAME = self._submenu_function()
    if not METHOD_NAME:
        return []
    return [SubmenuItem(self._menu_plugin, self._owner, (0, 0), item.get('text'), item.get('markup', False),
                        item.get('icon_name'), item.get('tooltip'), item.get('callback'), None, True,
                        item.get('sensitive', True))
            for item in METHOD_NAME]