code: def test_login(
      cli_runner: "CliRunner", cli: "Typer", mocker: "MockerFixture"
  ):
      login_mock = mocker.patch("argilla.client.login.login")
  
      result = cli_runner.invoke(
          cli,
          'login --api-url http://localhost:6900 --api-key api.key --workspace my_workspace --extra-headers "{\\"X-Unit-Test\\": \\"true\\"}"',
      )
  
      assert result.exit_code == 0
      login_mock.assert_called_once_with(
          api_url="http://localhost:6900",
          api_key="api.key",
          workspace="my_workspace",
          extra_headers={"X-Unit-Test": "true"},
      )
  
imports: from typing import TYPE_CHECKING
label_desc: Use image node_id 1 for calling a global function with example usage: test_login(cli_runner, cli, mocker) without return types