code: def test_path_applied_twice_does_not_double_prefix(ds):
      ds._settings["base_url"] = "/prefix/"
      path = ds.urls.path("/")
      assert path == "/prefix/"
      path = ds.urls.path(path)
      assert path == "/prefix/"
  
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 3 for calling a global function with example usage: test_path_applied_twice_does_not_double_prefix(ds) without return types