code: def test_with_api_key_only():
      auth = login.Auth()
      auth.save(
          user_id="7c8455e3-7c5f-4697-8a6d-105971d6b9bd",
          api_key="e63fae57-2b50-498b-bc46-d6204cbf330e",
      )
      assert (
          auth.authenticate()
          == "Basic N2M4NDU1ZTMtN2M1Zi00Njk3LThhNmQtMTA1OTcxZDZiOWJkOmU2M2ZhZTU3LTJiNTAtNDk4Yi1iYzQ2LWQ2MjA0Y2JmMzMwZQ=="  # noqa E501
      )
  
file_path: pytorch-lightning/tests/tests_app/utilities/test_login.py
imports: import os
  from unittest import mock
  import pytest
  import requests
  from lightning.app.utilities import login
label_desc: Use image node_id 8 for calling a global function with example usage: test_with_api_key_only() without return types