code: def add_method_model(self,
                           func,  # type: Callable
                           name=None,  # type: Optional[str]
                           description=None,  # type: Optional[str]
                           ):
          # type: (...) -> MethodModel
          
          return self._field_registry.add_method_model(
              func, name, description, self._part)
docs: Register a function to be added to the Block as a MethodModel