code: def test_serve_with_get_and_token():
      runner = CliRunner()
      result1 = runner.invoke(
          cli,
          [
              "create-token",
              "--secret",
              "sekrit",
              "root",
          ],
      )
      token = result1.output.strip()
      result2 = runner.invoke(
          cli,
          [
              "serve",
              "--secret",
              "sekrit",
              "--get",
              "/-/actor.json",
              "--token",
              token,
          ],
      )
      assert 0 == result2.exit_code, result2.output
      assert json.loads(result2.output) == {
          "actor": {"id": "root", "token": "dstok"}
      }
  
file_path: datasette/tests/test_cli_serve_get.py
imports: from datasette.cli import cli, serve
  from datasette.plugins import pm
  from click.testing import CliRunner
  import textwrap
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: test_serve_with_get_and_token() without return types