code: def test_authentication_with_invalid_environment_vars():
      # if api key is passed without user id
      os.environ.setdefault("LIGHTNING_API_KEY", "123")
      with pytest.raises(ValueError):
          auth = login.Auth()
          auth.clear()
          auth.authenticate()
  
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 2 for calling a global function with example usage: test_authentication_with_invalid_environment_vars() without return types