code: def test_check_samplers_nan():
      sampler = IndicesSampler()
      check_samplers_nan(sampler.__class__.__name__, sampler)
  
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 2 for calling a global function with example usage: test_check_samplers_nan() without return types