code: def test_hierarchical(self):
      hierarchical = dedupe.clustering.cluster
      assert self.clusterEquals(list(hierarchical(self.dupes, 1)), [])
  
      assert self.clusterEquals(
          list(hierarchical(self.dupes, 0.5)),
          [
              ((1, 2, 3), (0.778, 0.860, 0.778)),
              ((4, 5), (0.720, 0.720)),
              ((10, 11), (0.899, 0.899)),
          ],
      )
  
      print(hierarchical(self.dupes, 0.0))
      assert self.clusterEquals(
          list(hierarchical(self.dupes, 0)),
          [
              ((1, 2, 3, 4, 5), (0.526, 0.564, 0.542, 0.320, 0.623)),
              ((10, 11), (0.899, 0.899)),
          ],
      )
  
      assert list(hierarchical(self.str_dupes, 1)) == []
      assert list(zip(*hierarchical(self.str_dupes, 0.5)))[0] == (
          (b"1", b"2", b"3"),
          (b"4", b"5"),
      )
      assert list(zip(*hierarchical(self.str_dupes, 0)))[0] == (
          (b"1", b"2", b"3", b"4", b"5"),
      )
  
file_path: dedupe/tests/test_dedupe.py
imports: import itertools
  import unittest
  import numpy
  import dedupe
label_desc: Use image node_id 3 for calling the ClusteringTest obj's underlying member method code with example usage: obj.test_hierarchical() without return types