code: def testIndex(self):
      x = numpy.arange(0, 10)
      chk = numpy.array([3, 4, 5, 6])
      numpy.testing.assert_equal(indexing_ext.indexarray(x, chk), chk)
      chk = numpy.array([[0, 1], [2, 3]])
      numpy.testing.assert_equal(indexing_ext.indexarray(x, chk), chk)
      x = numpy.arange(9).reshape(3, 3)
      y = numpy.array([0, 1])
      z = numpy.array([0, 2])
      chk = numpy.array([0, 5])
      numpy.testing.assert_equal(indexing_ext.indexarray(x, y, z), chk)
      x = numpy.arange(0, 10)
      b = x > 4
      chk = numpy.array([5, 6, 7, 8, 9])
      numpy.testing.assert_equal(indexing_ext.indexarray(x, b), chk)
      x = numpy.arange(9).reshape(3, 3)
      b = numpy.array([0, 2])
      sl = slice(0, 3)
      chk = numpy.array([[0, 1, 2], [6, 7, 8]])
      numpy.testing.assert_equal(indexing_ext.indexslice(x, b, sl), chk)
  
file_path: turicreate/src/external/boost/boost_1_68_0/libs/python/test/numpy/indexing.py
imports: import unittest
  import numpy
  import indexing_ext
label_desc: Use image node_id 4 for calling the TestIndexing obj's underlying member method code with example usage: obj.testIndex() without return types