code: def test_iht_fit_resample_half():
      sampling_strategy = {0: 3, 1: 3}
      iht = InstanceHardnessThreshold(
          estimator=NB(),
          sampling_strategy=sampling_strategy,
          random_state=RND_SEED,
      )
      X_resampled, y_resampled = iht.fit_resample(X, Y)
      assert X_resampled.shape == (6, 2)
      assert y_resampled.shape == (6,)
  
file_path: imbalanced-learn/imblearn/under_sampling/_prototype_selection/tests/test_instance_hardness_threshold.py
imports: import numpy
  from sklearn.ensemble import GradientBoostingClassifier, RandomForestClassifier
  from sklearn.naive_bayes import GaussianNB
  from sklearn.utils._testing import assert_array_equal
  from imblearn.under_sampling import InstanceHardnessThreshold
label_desc: Use image node_id 3 for calling a global function with example usage: test_iht_fit_resample_half() without return types