code: def drop_table_if_exists(conn_or_engine, table):
      sqlalchemy = pytest.importorskip("sqlalchemy")
  
      if sqlalchemy.inspect(conn_or_engine).has_table(table):
          metadata = sqlalchemy.MetaData()
          with warnings.catch_warnings():
              warnings.filterwarnings(
                  "ignore",
                  message="Did not recognize type 'geometry' of column.*",
              )
              metadata.reflect(conn_or_engine)
          table = metadata.tables.get(table)
          if table is not None:
              table.drop(conn_or_engine, checkfirst=True)
  
imports: import os
  import warnings
  import pandas
  import geopandas
  from geopandas import GeoDataFrame, read_file, read_postgis
  import geopandas._compat
  from geopandas.io.sql import _get_conn, _write_postgis
  from geopandas.tests.util import create_postgis, create_spatialite, validate_boro_df
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: drop_table_if_exists(conn_or_engine, table) without return types