code: def test_inspect_cli(app_client):
      runner = CliRunner()
      result = runner.invoke(cli, ["inspect", "fixtures.db"])
      data = json.loads(result.output)
      assert ["fixtures"] == list(data.keys())
      database = data["fixtures"]
      assert "fixtures.db" == database["file"]
      assert isinstance(database["hash"], str)
      assert 64 == len(database["hash"])
      for table_name, expected_count in {
          "Table With Space In Name": 0,
          "facetable": 15,
      }.items():
          assert (
              expected_count == database["tables"][table_name]["count"]
          )
  
imports: from .fixtures import app_client, make_app_client, TestClient, EXPECTED_PLUGINS
  import asyncio
  from datasette.app import SETTINGS
  from datasette.plugins import DEFAULT_PLUGINS
  from datasette.cli import cli, serve
  from datasette.version import __version__
  from datasette.utils import tilde_encode
  from datasette.utils.sqlite import sqlite3
  from click.testing import CliRunner
  import io
  import json
  import pathlib
  import pytest
  import sys
  import textwrap
  from unittest import mock
  import urllib
label_desc: Use image node_id 1 for calling a global function with example usage: test_inspect_cli(app_client) without return types