code: def testNumPyIndexing(self):
      assert np is not None
  
      n = self.g.ecount()
      for i in range(n):
          arr = np.array([i])
          self.assertEqual(i, self.g.es[arr[0]].index)
  
      arr = np.array([n])
      self.assertRaises(IndexError, self.g.es.__getitem__, arr[0])
  
      arr = np.array([-n - 1])
      self.assertRaises(IndexError, self.g.es.__getitem__, arr[0])
  
      arr = np.array([1.5])
      self.assertRaises(TypeError, self.g.es.__getitem__, arr[0])
  
      ind = [1, 3, 5, 8, 3, 2]
      arr = np.array(ind)
      self.assertEqual(
          ind, [edge.index for edge in self.g.es[arr.tolist()]]
      )
      self.assertEqual(
          ind, [edge.index for edge in self.g.es[list(arr)]]
      )
  
imports: import unittest
  from igraph import Graph, Edge, EdgeSeq, VertexSeq
  from .utils import is_pypy
label_desc: Use image node_id 5 for calling the EdgeSeqTests obj's underlying member method code with example usage: obj.testNumPyIndexing() without return types