code: def test_request_url_vars():
      scope = {
          "http_version": "1.1",
          "method": "POST",
          "path": "/",
          "raw_path": b"/",
          "query_string": b"",
          "scheme": "http",
          "type": "http",
          "headers": [
              [b"content-type", b"application/x-www-form-urlencoded"]
          ],
      }
      assert {} == Request(scope, None).url_vars
      assert {"name": "cleo"} == Request(
          dict(scope, url_route={"kwargs": {"name": "cleo"}}), None
      ).url_vars
  
file_path: datasette/tests/test_internals_request.py
imports: from datasette.utils.asgi import Request
  import json
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_request_url_vars() without return types