code: def test_login_key(capsys):
      wandb.login(key="A" * 40)
      # TODO: this was a bug when tests were leaking out to the global config
      # wandb.api.set_setting("base_url", "http://localhost:8080")
      out, err = capsys.readouterr()
      print(out)
      print(err)
      assert "Appending key" in err
      #  WTF is happening?
      assert wandb.api.api_key == "A" * 40
  
imports: import os
  import platform
  import queue
  import sys
  import tempfile
  import threading
  import time
  from unittest import mock
  import pytest
  import wandb
label_desc: Use image node_id 7 for calling a global function with example usage: test_login_key(capsys) without return types