code: def test_renn_iter_wrong():
      max_iter = -1
      renn = RepeatedEditedNearestNeighbours(max_iter=max_iter)
      with pytest.raises(ValueError):
          renn.fit_resample(X, Y)
  
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 2 for calling a global function with example usage: test_renn_iter_wrong() without return types