code: def test_cli_workspaces_list_needs_login(
      cli_runner: "CliRunner", cli: "Typer"
  ):
      result = cli_runner.invoke(cli, "workspaces list")
  
      assert (
          "You are not logged in. Please run 'argilla login' to login"
          in result.stdout
      )
      assert result.exit_code == 1
  
file_path: argilla/tests/unit/cli/workspaces/test_list.py
imports: from typing import TYPE_CHECKING
  from unittest.mock import ANY
  import pytest
  from argilla.client.workspaces import Workspace
  from rich.table import Table
  from tests.factories import WorkspaceSyncFactory
label_desc: Use image node_id 2 for calling a global function with example usage: test_cli_workspaces_list_needs_login(cli_runner, cli) without return types