code: def get_parameters_from_uri(  # type: ignore
      cls, uri: str, *_, **__
  ) -> DatabricksParametersType:
      url = make_url_safe(uri)
      encryption = all(
          item in url.query.items()
          for item in cls.encryption_parameters.items()
      )
      return {
          "access_token": url.password,
          "host": url.host,
          "port": url.port,
          "database": url.database,
          "encryption": encryption,
      }
  
imports: from __future__ import annotations
  import json
  from datetime import datetime
  from typing import Any, TYPE_CHECKING, TypedDict
  from apispec import APISpec
  from apispec.ext.marshmallow import MarshmallowPlugin
  from flask_babel import gettext
  from marshmallow import fields, Schema
  from marshmallow.validate import Range
  from sqlalchemy.engine.reflection import Inspector
  from sqlalchemy.engine.url import URL
  from superset.constants import TimeGrain, USER_AGENT
  from superset.databases.utils import make_url_safe
  from superset.db_engine_specs.base import BaseEngineSpec, BasicParametersMixin
  from superset.db_engine_specs.hive import HiveEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.utils.network import is_hostname_valid, is_port_open
label_desc: Use image node_id 5 for calling the DatabricksNativeEngineSpec obj's underlying member method code with example usage: obj.get_parameters_from_uri(cls, uri) and returns: dict