code: def drop_all_schema_objects_pre_tables(cfg, eng):
      with eng.connect().execution_options(
          isolation_level="AUTOCOMMIT"
      ) as conn:
          inspector = inspect(conn)
          for schema in (
              None,
              "dbo",
              cfg.test_schema,
              cfg.test_schema_2,
          ):
              for tname in inspector.get_table_names(schema=schema):
                  tb = Table(
                      tname,
                      MetaData(),
                      Column("x", Integer),
                      Column("y", Integer),
                      schema=schema,
                  )
                  for fk in inspect(conn).get_foreign_keys(
                      tname, schema=schema
                  ):
                      conn.execute(
                          DropConstraint(
                              ForeignKeyConstraint(
                                  [tb.c.x], [tb.c.y], name=fk["name"]
                              )
                          )
                      )
  
imports: from sqlalchemy import inspect
  from sqlalchemy import Integer
  from ...None import create_engine
  from ...None import exc
  from ...schema import Column
  from ...schema import DropConstraint
  from ...schema import ForeignKeyConstraint
  from ...schema import MetaData
  from ...schema import Table
  from ...testing.provision import create_db
  from ...testing.provision import drop_all_schema_objects_pre_tables
  from ...testing.provision import drop_db
  from ...testing.provision import generate_driver_url
  from ...testing.provision import get_temp_table_name
  from ...testing.provision import log
  from ...testing.provision import normalize_sequence
  from ...testing.provision import run_reap_dbs
  from ...testing.provision import temp_table_keyword_args
label_desc: Use image node_id 8 for calling a global function with example usage: drop_all_schema_objects_pre_tables(cfg, eng) without return types