code: def drop_column_constraints(operator, column_name, constraint_dict):
      """
      Drop a primary key or unique constraint
  
      :param operator: batch_alter_table for the table
      :param constraint_dict: a dictionary of ((constraint name, constraint type), column name) of table
      """
      for constraint, columns in constraint_dict.items():
          if column_name in columns:
              if constraint[1].lower().startswith("primary"):
                  operator.drop_constraint(
                      constraint[0], type_="primary"
                  )
              elif constraint[1].lower().startswith("unique"):
                  operator.drop_constraint(
                      constraint[0], type_="unique"
                  )
  
file_path: airflow/airflow/migrations/versions/0060_2_0_0_remove_id_column_from_xcom.py
imports: from __future__ import annotations
  from collections import defaultdict
  from alembic import op
  from sqlalchemy import Column, Integer, inspect, text
label_desc: Use image node_id 2 for calling a global function with example usage: drop_column_constraints(operator, column_name, constraint_dict) without return types