code: def generic_find_uq_constraint_name(table, columns, insp):
      
  
      for uq in insp.get_unique_constraints(table):
          if columns == set(uq['column_names']):
              return uq['name']
docs: Utility to find a unique constraint name in alembic migrations