code: def test_batch_with_duplicates():
      # Instantiate tree with 10 duplicates
      leafcount = duplicate_tree._count_leaves(tree.root)
      assert leafcount == n
      for i in range(90, 100):
          try:
              assert duplicate_tree.leaves[i].n == 10
          except:
              print(i)
              print(duplicate_tree.leaves[i].n)
              raise
  
file_path: rrcf/test/test_rrcf.py
imports: import json
  import numpy
  import rrcf
label_desc: Use image node_id 7 for calling a global function with example usage: test_batch_with_duplicates() without return types