code: def test_override_base_url_passed_to_login():
      base_url = "https://wandb.space"
      with mock.patch.object(
          wandb, "login", mock.MagicMock()
      ) as mock_login:
          api = wandb.Api(
              api_key=None, overrides={"base_url": base_url}
          )
          assert mock_login.call_args[1]["host"] == base_url
          assert api.settings["base_url"] == base_url
  
imports: from unittest import mock
  import pytest
  import wandb
  from wandb import Api
  from wandb.sdk.artifacts.artifact_download_logger import ArtifactDownloadLogger
  from wandb.sdk.internal.thread_local_settings import _thread_local_api_settings
label_desc: Use image node_id 14 for calling a global function with example usage: test_override_base_url_passed_to_login() without return types