code: def test_database(ds, base_url, format, expected):
      ds._settings["base_url"] = base_url
      actual = ds.urls.database("_memory", format=format)
      assert actual == expected
      assert isinstance(actual, PrefixedUrlString)
  
file_path: datasette/tests/test_internals_urls.py
imports: from datasette.app import Datasette
  from datasette.utils import PrefixedUrlString
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_database(ds, base_url, format, expected) without return types