def create(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.create(spec)
        return self._entity_type(self._client, model)

        Creates a new object on the server and returns the corresponding local object
        
cvat-sdk/cvat_sdk/core/proxies/model_proxy.py