code: def test_permissions_checked(app_client, path, permissions):
      # Needs file-backed app_client for /fixtures.db
      app_client.ds._permission_checks.clear()
      response = app_client.get(path)
      assert response.status_code in (200, 403)
      assert_permissions_checked(app_client.ds, permissions)
  
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 11 for calling a global function with example usage: test_permissions_checked(app_client, path, permissions) without return types