code: def test_workspace_add_user_with_user_belonging_to_workspace(
      self,
      cli_runner: "CliRunner",
      cli: "Typer",
      mocker: "MockerFixture",
      workspace,
      user,
  ) -> None:
      mocker.patch(
          "argilla.client.workspaces.Workspace.from_name",
          return_value=workspace,
      )
      mocker.patch(
          "argilla.client.users.User.from_name", return_value=user
      )
      mocker.patch(
          "argilla.client.workspaces.Workspace.add_user",
          side_effect=ValueError,
      )
  
      result = cli_runner.invoke(
          cli, "workspaces --name unit-test add-user unit-test"
      )
  
      assert result.exit_code == 1
      assert (
          "User with username=unit-test already exists in workspace=unit-test"
          in result.stdout
      )
  
file_path: argilla/tests/unit/cli/workspaces/test_add_user.py
imports: from typing import TYPE_CHECKING
  import pytest
label_desc: Use image node_id 5 for calling the TestSuiteWorkspaceAddUser obj's underlying member method code with example usage: obj.test_workspace_add_user_with_user_belonging_to_workspace(cli_runner, cli, mocker, workspace, user) without return types