code: def upgrade():
      bind = op.get_bind()
      insp = engine.reflection.Inspector.from_engine(bind)
  
      # Drop the uniqueness constraint if it exists.
  
      if constraint := generic_find_uq_constraint_name(
          "tables", {"table_name"}, insp
      ):
          with op.batch_alter_table(
              "tables", naming_convention=conv
          ) as batch_op:
              batch_op.drop_constraint(constraint, type_="unique")
  
imports: from alembic import op
  from sqlalchemy import engine
  from sqlalchemy.exc import OperationalError, ProgrammingError
  from superset.utils.core import generic_find_uq_constraint_name
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types