code: def test_cli_login(clear: mock.MagicMock, run_server: mock.MagicMock):
      runner = CliRunner()
      runner.invoke(login)
  
      clear.assert_called_once_with()
      run_server.assert_called_once()
  
file_path: pytorch-lightning/tests/tests_app/cli/test_cli.py
imports: import os
  from unittest import mock
  from unittest.mock import MagicMock
  import pytest
  from click.testing import CliRunner
  from lightning.app import __version__
  from lightning.app.cli.lightning_cli import _main, login, logout, run
  from lightning.app.cli.lightning_cli_delete import delete
  from lightning.app.cli.lightning_cli_list import get_list, list_apps
  from lightning.app.utilities.exceptions import _ApiExceptionHandler
label_desc: Use image node_id 5 for calling a global function with example usage: test_cli_login(clear, run_server) without return types