code: def test_add_points_batch5(self):
      if not has_scipy:
          return
      row = np.array([0, 0, 1, 2, 2])
      col = np.array([0, 2, 1, 1, 2])
      data = np.array([0.3, 0.2, 0.4, 0.1, 0.6])
      m = csr_matrix((data, (row, col)), dtype=np.float32, shape=(3, 3))
      # print m.toarray()
      positions = nmslib.addDataPointBatch(
          self.index, np.array([0, 1, 2], dtype=np.int32), m
      )
      nt.assert_array_equal(
          np.array([0, 1, 2], dtype=np.int32), positions
      )
  
imports: import unittest
  import numpy.testing
  import os
  import numpy
  import nmslib
label_desc: Use image node_id 7 for calling the SparseTests obj's underlying member method code with example usage: obj.test_add_points_batch5() without return types