docstr: Tests that some edges are lost with insufficient LSH rounds.
docstr_tok: ["Tests","that","some","edges","are","lost","with","insufficient","LSH","rounds","."]
code: def testBuildGraphWithThresholdWithLSHInsufficientLSHRounds(self):
      """Tests that some edges are lost with insufficient LSH rounds."""
      # Construct the embeddings and write them to a file.
      num_points = 20
      (embeddings, _) = self._build_test_embeddings(num_points)
      embedding_path = self._create_embedding_file()
      write_embeddings(embeddings, embedding_path)
  
      # Build the graph, and read the results into a dictionary.
      graph_path = self._create_graph_file()
      build_graph_lib.build_graph(
          [embedding_path],
          graph_path,
          similarity_threshold=0.9,
          lsh_splits=2,
          lsh_rounds=1,
          random_seed=12345,
      )
      self.assertEqual(
          self._num_file_lines(graph_path), num_points * 2 - 8
      )
      g_actual = graph_utils.read_tsv_graph(graph_path)
  
      # Check that the graph contains fewer than 2 * N edges
      actual_edge_cnt = 0
      for unused_src_id, tgt_dict in six.iteritems(g_actual):
          actual_edge_cnt += len(tgt_dict)
      self.assertEqual(
          actual_edge_cnt,
          2 * len(embeddings) - 8,
          "Expected some edges not to have been found.",
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import cmath
  from absl.testing import absltest
  from neural_structured_learning.tools import build_graph
  from neural_structured_learning.tools import graph_utils
  import six
  import tensorflow
  from google.protobuf import text_format
label_desc: Use image node_id 9 for calling the BuildGraphTest obj's underlying member method code with example usage: obj.testBuildGraphWithThresholdWithLSHInsufficientLSHRounds() without return types