code: def test_create_user_errors(
      self,
      cli_runner: "CliRunner",
      cli: "Typer",
      mocker: "MockerFixture",
      ExceptionType: Type[Exception],
      expected_msg: str,
  ) -> None:
      user_create_mock = mocker.patch(
          "argilla.client.users.User.create", side_effect=ExceptionType
      )
  
      result = cli_runner.invoke(
          cli,
          "users create --username unit-test --password unit-test --first-name unit-test --last-name unit-test --role owner --workspace ws1 --workspace ws2",
      )
  
      assert result.exit_code == 1
      assert expected_msg in result.stdout
      user_create_mock.assert_called_once_with(
          username="unit-test",
          password="unit-test",
          first_name="unit-test",
          last_name="unit-test",
          role=UserRole.owner,
          workspaces=["ws1", "ws2"],
      )
  
imports: from typing import TYPE_CHECKING, Type
  import pytest
  from argilla.client.sdk.users.models import UserRole
label_desc: Use image node_id 2 for calling the TestSuiteCreateUserCommand obj's underlying member method code with example usage: obj.test_create_user_errors(cli_runner, cli, mocker, ExceptionType, expected_msg) without return types