class_docstr: Tests to exercise indexerrors not covered by other tests.
docstr: cases from methods.c
docstr_tok: ["cases","from","methods.c"]
code: def test_methods(self):
      "cases from methods.c"
  
      a = np.zeros((3, 3))
      assert_raises(IndexError, lambda: a.item(100))
      assert_raises(IndexError, lambda: a.itemset(100, 1))
      a = np.zeros((0, 3))
      assert_raises(IndexError, lambda: a.item(100))
      assert_raises(IndexError, lambda: a.itemset(100, 1))
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/tests/test_indexerrors.py
imports: import numpy
  from numpy.testing import assert_raises, assert_raises_regex
label_desc: Use image node_id 8 for calling the TestIndexErrors obj's underlying member method code with example usage: obj.test_methods() without return types