def action(self, label=None):
        def decorator(function):
            _label = (label if label is not None else
                      function.__name__.replace('_', ' '))
            self.register(lambda *args, **kwargs: [(_label, interaction(function))])
            return function
        return decorator
A decorator that easily lets you register a single function as a
dataset/ETHPy150Open Microsoft/ivy/ivy/ui_extensions_api.py/ExtensionPoint.action