docstr: Make some invalid entries in the input knn graph.
  
  It would cause a warning but IndexNSG should be able
  to handel this.
docstr_tok: ["Make","some","invalid","entries","in","the","input","knn","graph",".","It","would","cause","a","warning","but","IndexNSG","should","be","able","to","handel","this","."]
code: def test_build_invalid_knng(self):
      """Make some invalid entries in the input knn graph.
  
      It would cause a warning but IndexNSG should be able
      to handel this.
      """
      knn_graph = self.make_knn_graph(faiss.METRIC_L2)
      knn_graph[:100, 5] = -111
      self.subtest_build(knn_graph, 475, faiss.METRIC_L2)
  
      knn_graph = self.make_knn_graph(faiss.METRIC_INNER_PRODUCT)
      knn_graph[:100, 5] = -111
      self.subtest_build(knn_graph, 480, faiss.METRIC_INNER_PRODUCT)
  
imports: import numpy
  import unittest
  import faiss
  import tempfile
  import os
  from common_faiss_tests import get_dataset_2
label_desc: Use image node_id 13 for calling the TestNSG obj's underlying member method code with example usage: obj.test_build_invalid_knng() without return types