code: def build_db_for_connection_test(
      server_cert: str,
      extra: str,
      impersonate_user: bool,
      encrypted_extra: str,
  ) -> Database:
      return Database(
          server_cert=server_cert,
          extra=extra,
          impersonate_user=impersonate_user,
          encrypted_extra=encrypted_extra,
      )
  
imports: from __future__ import annotations
  import logging
  from typing import Any
  from superset.daos.base import BaseDAO
  from superset.databases.filters import DatabaseFilter
  from superset.databases.ssh_tunnel.models import SSHTunnel
  from superset.extensions import db
  from superset.models.core import Database
  from superset.models.dashboard import Dashboard
  from superset.models.slice import Slice
  from superset.models.sql_lab import TabState
  from superset.utils.core import DatasourceType
  from superset.utils.ssh_tunnel import unmask_password_info
label_desc: Use image node_id 5 for calling the DatabaseDAO obj's underlying member method code with example usage: obj.build_db_for_connection_test(server_cert, extra, impersonate_user, encrypted_extra) and returns: Database