code: def test_workspace_create(owner: "ServerUser") -> None:
      ArgillaSingleton.init(api_key=owner.api_key)
  
      workspace = Workspace.create(name="test_workspace")
      assert workspace.name == "test_workspace"
      assert isinstance(workspace.id, UUID)
  
      with pytest.raises(
          ValueError,
          match="Workspace with name=`test_workspace` already exists",
      ):
          Workspace.create("test_workspace")
  
      api = ArgillaSingleton.get()
      workspaces = api.http_client.get("/api/workspaces")
      assert any(ws["name"] == "test_workspace" for ws in workspaces)
  
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 2 for calling a global function with example usage: test_workspace_create(owner) without return types