code: def test_maxiter(self):
      # test that maxiter argument does stop iterations
      # NB: did not manage to find a test case where the default value
      # of maxiter is not sufficient, so use a too-small value
      rndm = np.random.RandomState(1234)
      a = rndm.uniform(size=(100, 100))
      b = rndm.uniform(size=100)
      with assert_raises(RuntimeError):
          nnls(a, b, maxiter=1)
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/tests/test_nnls.py
imports: import numpy
  from numpy.testing import assert_
  from pytest import raises
  from scipy.optimize import nnls
  from numpy import arange, dot
  from numpy.linalg import norm
label_desc: Use image node_id 2 for calling the TestNNLS obj's underlying member method code with example usage: obj.test_maxiter() without return types