def test_iht_estimator_pipeline():
    """Check that we can pass a pipeline containing a classifier.

    Checking if we have a classifier should not be based on inheriting from
    `ClassifierMixin`.

    Non-regression test for:
    https://github.com/scikit-learn-contrib/imbalanced-learn/pull/1049
    """
    model = make_pipeline(GradientBoostingClassifier(random_state=RND_SEED))
    iht = InstanceHardnessThreshold(estimator=model, random_state=RND_SEED)
    X_resampled, y_resampled = iht.fit_resample(X, Y)
    assert X_resampled.shape == (12, 2)
    assert y_resampled.shape == (12,)
Check that we can pass a pipeline containing a classifier.

    Checking if we have a classifier should not be based on inheriting from
    `ClassifierMixin`.

    Non-regression test for:
    https://github.com/scikit-learn-contrib/imbalanced-learn/pull/1049
    
imblearn/under_sampling/_prototype_selection/tests/test_instance_hardness_threshold.py