code: def add_method_model(self,
                           func,  # type: Callable
                           name=None,  # type: Optional[str]
                           description=None,  # type: Optional[str]
                           owner=None,  # type: object
                           ):
          # type: (...) -> MethodModel
          
          if name is None:
              name = func.__name__
          method = MethodModel.from_callable(func, description)
          self._add_field(owner, name, method, func)
          return method
docs: Register a function to be added to the block