def register_function(self, function, inputs, parameters, outputs, name, description): callable = MethodCallable.from_function(function, inputs, parameters, outputs, self._package) source = self._get_function_source(function) self._register_callable(callable, name, description, source)