code: def test_databases(config_dir_client):
      response = config_dir_client.get("/-/databases.json")
      assert 200 == response.status
      databases = response.json
      assert 4 == len(databases)
      databases.sort(key=lambda d: d["name"])
      for db, expected_name in zip(
          databases, ("demo", "immutable", "j", "k")
      ):
          assert expected_name == db["name"]
          assert db["is_mutable"] == (expected_name != "immutable")
  
imports: import json
  import pathlib
  import pytest
  from datasette.app import Datasette
  from datasette.cli import cli
  from datasette.utils.sqlite import sqlite3
  from datasette.utils import StartupError
  from .fixtures import TestClient
  from click.testing import CliRunner
label_desc: Use image node_id 10 for calling a global function with example usage: test_databases(config_dir_client) without return types