code: def test_whoami_errors() -> None:
      with pytest.raises(
          BaseClientError,
          match="Your Api endpoint at http://localhost:6900 is not available or not responding",
      ):
          whoami(
              AuthenticatedClient(
                  base_url="http://localhost:6900", token="wrong-apikey"
              )
          )
  
file_path: argilla/tests/integration/client/sdk/api/test_users.py
imports: from typing import TYPE_CHECKING
  from uuid import uuid4
  import pytest
  from argilla.client.client import Argilla
  from argilla.client.sdk.client import AuthenticatedClient
  from argilla.client.sdk.commons.errors import AlreadyExistsApiError, BaseClientError, ForbiddenApiError, NotFoundApiError, UnauthorizedApiError, ValidationApiError
  from argilla.client.sdk.users.api import create_user, delete_user, list_users, whoami
  from argilla.client.sdk.users.models import UserModel
  from argilla.client.singleton import ArgillaSingleton
  from tests.factories import WorkspaceFactory
  from tests.factories import UserFactory
label_desc: Use image node_id 2 for calling a global function with example usage: test_whoami_errors() without return types