def METHOD_NAME(self: Repo, spec: Union[Dict[str, Any], IModel]) -> _EntityT:
    """
    Creates a new object on the server and returns the corresponding local object
    """
    (model, _) = self.api.METHOD_NAME(spec)
    return self._entity_type(self._client, model)