code: def test_components(self):
      G = numpy.array(
          [
              ((1, 2), 0.1),
              ((2, 3), 0.2),
              ((4, 5), 0.2),
              ((4, 6), 0.2),
              ((7, 9), 0.2),
              ((8, 9), 0.2),
              ((10, 11), 0.2),
              ((12, 13), 0.2),
              ((12, 14), 0.5),
              ((11, 12), 0.2),
          ],
          dtype=[("pairs", "i4", 2), ("score", "f4")],
      )
      components = dedupe.clustering.connected_components
      G_components = {
          frozenset(tuple(edge) for edge, _ in component)
          for component in components(G, 30000)
      }
      assert G_components == {
          frozenset(((1, 2), (2, 3))),
          frozenset(((4, 5), (4, 6))),
          frozenset(((12, 13), (12, 14), (10, 11), (11, 12))),
          frozenset(((7, 9), (8, 9))),
      }
  
file_path: dedupe/tests/test_dedupe.py
imports: import itertools
  import unittest
  import numpy
  import dedupe
label_desc: Use image node_id 1 for calling the ConnectedComponentsTest obj's underlying member method code with example usage: obj.test_components() without return types