code: def test_get_parameters_from_uri() -> None:
      """
      Test that the result from ``get_parameters_from_uri`` is JSON serializable.
      """
      from superset.db_engine_specs.databricks import (
          DatabricksNativeEngineSpec,
          DatabricksParametersType,
      )
  
      parameters = DatabricksNativeEngineSpec.get_parameters_from_uri(
          "databricks+connector://token:abc12345@my_hostname:1234/test"
      )
      assert parameters == DatabricksParametersType(
          {
              "access_token": "abc12345",
              "host": "my_hostname",
              "port": 1234,
              "database": "test",
              "encryption": False,
          }
      )
      assert json.loads(json.dumps(parameters)) == parameters
  
file_path: superset/tests/unit_tests/db_engine_specs/test_databricks.py
imports: import json
  from datetime import datetime
  from typing import Optional
  import pytest
  from pytest_mock import MockerFixture
  from superset.db_engine_specs.databricks import DatabricksNativeEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
  from tests.unit_tests.fixtures.common import dttm
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_parameters_from_uri() without return types