code: def test_base_url_sanitization():
      with mock.patch.object(wandb, "login", mock.MagicMock()):
          api = Api({"base_url": "https://wandb.corp.net///"})
          assert api.settings["base_url"] == "https://wandb.corp.net"
  
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 4 for calling a global function with example usage: test_base_url_sanitization() without return types