code: def test_database_parameters_schema_mixin_no_engine(
      dummy_schema: "Schema",
  ) -> None:
      from superset.models.core import ConfigurationMethod
  
      payload = {
          "configuration_method": ConfigurationMethod.DYNAMIC_FORM,
          "parameters": {
              "username": "username",
              "password": "password",
              "host": "localhost",
              "port": 12345,
              "database": "dbname",
          },
      }
      try:
          dummy_schema.load(payload)
      except ValidationError as err:
          assert err.messages == {
              "_schema": [
                  (
                      "An engine must be specified when passing individual parameters to "
                      "a database."
                  ),
              ]
          }
  
file_path: superset/tests/unit_tests/databases/schema_tests.py
imports: from typing import TYPE_CHECKING
  import pytest
  from marshmallow import fields, Schema, ValidationError
  from pytest_mock import MockFixture
label_desc: Use image node_id 4 for calling a global function with example usage: test_database_parameters_schema_mixin_no_engine(dummy_schema) without return types