code: def _test_single_check(Estimator, check):
      estimator = Estimator()
      name = estimator.__class__.__name__
      err_type, err_msg = mapping_estimator_error[name]
      with pytest.raises(err_type, match=err_msg):
          check(name, estimator)
  
imports: import numpy
  import pytest
  from sklearn.base import BaseEstimator
  from sklearn.utils.multiclass import check_classification_targets
  from imblearn.base import BaseSampler
  from imblearn.over_sampling.base import BaseOverSampler
  from imblearn.utils import check_target_type
  from imblearn.utils.estimator_checks import check_samplers_fit, check_samplers_nan, check_samplers_one_label, check_samplers_preserve_dtype, check_samplers_sparse, check_samplers_string, check_target_type
label_desc: Use image node_id 3 for calling a global function with example usage: _test_single_check(Estimator, check) without return types