code: def test_argilla_credentials_load(mocker: "MockFixture"):
      mocker.patch(
          "builtins.open",
          mocker.mock_open(
              read_data='{"api_url": "http://unit-test.com:6900", "api_key": "unit.test", "workspace": "unit-tests", "extra_headers": {"X-Unit-Test": "true"}}'
          ),
      )
      path_mock = mocker.patch.object(Path, "exists")
      path_mock.return_value = True
  
      credentials = ArgillaCredentials.load()
  
      open.assert_called_once_with(ARGILLA_CREDENTIALS_FILE, "r")
      assert credentials.api_url == "http://unit-test.com:6900"
      assert credentials.api_key == "unit.test"
      assert credentials.workspace == "unit-tests"
      assert credentials.extra_headers == {"X-Unit-Test": "true"}
  
file_path: argilla/tests/unit/client/test_login.py
imports: from pathlib import Path
  from typing import TYPE_CHECKING
  import pytest
  from argilla.client.login import ARGILLA_CREDENTIALS_FILE, ArgillaCredentials, login
label_desc: Use image node_id 2 for calling a global function with example usage: test_argilla_credentials_load(mocker) without return types