code: def test_renn_iter_attribute(max_iter, n_iter):
      renn = RepeatedEditedNearestNeighbours(max_iter=max_iter)
      renn.fit_resample(X, Y)
      assert renn.n_iter_ == n_iter
  
file_path: imbalanced-learn/imblearn/under_sampling/_prototype_selection/tests/test_repeated_edited_nearest_neighbours.py
imports: import numpy
  import pytest
  from sklearn.neighbors import NearestNeighbors
  from sklearn.utils._testing import assert_array_equal
  from imblearn.under_sampling import RepeatedEditedNearestNeighbours
label_desc: Use image node_id 6 for calling a global function with example usage: test_renn_iter_attribute(max_iter, n_iter) without return types