code: def test_workspace_cls_init() -> None:
      with pytest.raises(
          Exception,
          match=r"`Workspace` cannot be initialized via the `__init__` method | you should use `Workspace.from_name\('test_workspace'\)`",
      ):
          Workspace(name="test_workspace")
  
      with pytest.raises(
          Exception,
          match=r"`Workspace` cannot be initialized via the `__init__` method | you should use `Workspace.from_id\('00000000-0000-0000-0000-000000000000'\)`",
      ):
          Workspace(id="00000000-0000-0000-0000-000000000000")
  
file_path: argilla/tests/integration/client/test_workspaces.py
imports: from typing import TYPE_CHECKING
  from uuid import UUID, uuid4
  import pytest
  from argilla.client.sdk.users.models import UserModel, UserRole
  from argilla.client.singleton import ArgillaSingleton
  from argilla.client.workspaces import Workspace
  from tests.factories import DatasetFactory, UserFactory, WorkspaceFactory, WorkspaceUserFactory
label_desc: Use image node_id 1 for calling a global function with example usage: test_workspace_cls_init() without return types