code: def test_get_catalog_names(app_context: AppContext) -> None:
      """
      Test the ``get_catalog_names`` method.
      """
      database = get_example_database()
  
      if database.backend != "postgresql":
          return
  
      with database.get_inspector_with_context() as inspector:
          assert PostgresEngineSpec.get_catalog_names(
              database, inspector
          ) == [
              "postgres",
              "superset",
          ]
  
imports: from textwrap import dedent
  from unittest import mock
  from flask.ctx import AppContext
  from sqlalchemy import column, literal_column
  from sqlalchemy.dialects import postgresql
  from superset.db_engine_specs import load_engine_specs
  from superset.db_engine_specs.postgres import PostgresEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.models.sql_lab import Query
  from superset.utils.database import get_example_database
  from tests.integration_tests.db_engine_specs.base_tests import TestDbEngineSpec
  from tests.integration_tests.fixtures.certificates import ssl_certificate
  from tests.integration_tests.fixtures.database import default_db_extra
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_catalog_names(app_context) without return types