code: def label_from_func(self, func:Callable, label_cls:Callable=None, **kwargs)->'LabelList':
          "Apply `func` to every input to get its label."
          return self._label_from_list([func(o) for o in self.items], label_cls=label_cls, **kwargsf label_from_func(self, func:Callable, label_cls:Callable=None, **kwargs)->'LabelList':
          "Apply `func` to every input to get its label."
          return self._label_from_list([func(o) for o in self.items], label_cls=label_cls, **kwargs)
docs: Apply `func` to every input to get its label.