def METHOD_NAME(operations: "Operations", operation: "ops.DropIndexOp") -> None:
    kw = {}
    if operation.if_exists is not None:
        if not sqla_2:
            raise NotImplementedError("SQLAlchemy 2.0+ required")
        kw["if_exists"] = operation.if_exists
    operations.impl.METHOD_NAME(
        operation.to_index(operations.migration_context),
        **kw,
    )