code: def test_get_catalog_names(app_context: AppContext) -> None:
      """
      Test the ``get_catalog_names`` method.
      """
      database = get_example_database()
  
      if database.backend != "presto":
          return
  
      with database.get_inspector_with_context() as inspector:
          assert PrestoEngineSpec.get_catalog_names(
              database, inspector
          ) == [
              "jmx",
              "memory",
              "system",
              "tpcds",
              "tpch",
          ]
  
imports: from collections import namedtuple
  from textwrap import dedent
  from unittest import mock, skipUnless
  import pandas
  from flask.ctx import AppContext
  from sqlalchemy import types
  from sqlalchemy.sql import select
  from superset.db_engine_specs.presto import PrestoEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.sql_parse import ParsedQuery
  from superset.utils.database import get_example_database
  from tests.integration_tests.db_engine_specs.base_tests import TestDbEngineSpec
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_catalog_names(app_context) without return types