code: def upgrade() -> None:
      bind = op.get_bind()
  
      if bind.dialect.name == "postgresql":
          response_status_enum.create(bind)
          op.execute(
              "ALTER TABLE responses ALTER COLUMN status TYPE response_status_enum USING status::response_status_enum"
          )
  
          dataset_status_enum.create(bind)
          op.execute(
              "ALTER TABLE datasets ALTER COLUMN status TYPE dataset_status_enum USING status::dataset_status_enum"
          )
  
          user_role_enum.create(bind)
          op.execute(
              "ALTER TABLE users ALTER COLUMN role TYPE user_role_enum USING role::user_role_enum"
          )
  
imports: import sqlalchemy
  from alembic import op
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types