code: def test_from_dict():
      num_leaves = 10
      with open("tree.json", "r") as infile:
          obj = json.load(infile)
      tree = rrcf.RCTree()
      tree.load_dict(obj)
      tree = rrcf.RCTree.from_dict(obj)
      # Ensure we didn't drop any duplicate leaves
      assert len(tree.leaves) == num_leaves
  
file_path: rrcf/test/test_rrcf.py
imports: import json
  import numpy
  import rrcf
label_desc: Use image node_id 15 for calling a global function with example usage: test_from_dict() without return types