code: def add_attribute_model(self,
                              name,  # type: str
                              attr,  # type: AttributeModel
                              writeable_func=None,  # type: Optional[Callable]
                              ):
          # type: (...) -> AttributeModel
          
          return self._field_registry.add_attribute_model(
              name, attr, writeable_func, self._part)
docs: Register a pre-existing AttributeModel to be added to the Block