code: def test_get_table_names(self):
      inspector = mock.Mock()
      inspector.get_table_names = mock.Mock(
          return_value=["schema.table", "table_2"]
      )
      inspector.get_foreign_table_names = mock.Mock(
          return_value=["table_3"]
      )
  
      """ Make sure base engine spec removes schema name from table name
          ie. when try_remove_schema_from_table_name == True. """
      base_result_expected = {"table", "table_2"}
      base_result = BaseEngineSpec.get_table_names(
          database=mock.ANY, schema="schema", inspector=inspector
      )
      assert base_result_expected == base_result
  
imports: import datetime
  from unittest import mock
  import pytest
  from superset.connectors.sqla.models import TableColumn
  from superset.db_engine_specs import load_engine_specs
  from superset.db_engine_specs.base import BaseEngineSpec, BasicParametersMixin, builtin_time_grains, LimitMethod
  from superset.db_engine_specs.mysql import MySQLEngineSpec
  from superset.db_engine_specs.sqlite import SqliteEngineSpec
  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
  from tests.integration_tests.test_app import app
  from ..fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices, load_birth_names_data
  from ..fixtures.energy_dashboard import load_energy_table_data, load_energy_table_with_slice
  from ..fixtures.pyodbcRow import Row
label_desc: Use image node_id 17 for calling the TestDbEngineSpecs obj's underlying member method code with example usage: obj.test_get_table_names() without return types