code: def test_cli_datasets_list_needs_login(
      cli_runner: "CliRunner", cli: "Typer"
  ) -> None:
      result = cli_runner.invoke(cli, "datasets 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/datasets/test_list.py
imports: from typing import TYPE_CHECKING
  from unittest.mock import ANY, call
  import pytest
  from argilla.client.enums import DatasetType
  from rich.table import Table
label_desc: Use image node_id 1 for calling a global function with example usage: test_cli_datasets_list_needs_login(cli_runner, cli) without return types