code: def test_cli_create_token(options, expected):
      runner = CliRunner()
      result1 = runner.invoke(
          cli,
          [
              "create-token",
              "--secret",
              "sekrit",
              "root",
          ]
          + options,
      )
      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": expected}
  
imports: import collections
  from datasette.app import Datasette
  from datasette.cli import cli
  from datasette.default_permissions import restrictions_allow_action
  from .fixtures import app_client, assert_permissions_checked, make_app_client
  from click.testing import CliRunner
  from bs4 import BeautifulSoup
  import copy
  import json
  from pprint import pprint
  import pytest_asyncio
  import pytest
  import re
  import time
  import urllib
label_desc: Use image node_id 18 for calling a global function with example usage: test_cli_create_token(options, expected) without return types