class_docstr: prefix tree
code: def dump(self):
      nodes = [self.root]
      while len(nodes) > 0:
          # put all children into list
          for v in nodes[0].children.values():
              nodes.append(v)
  
          # dump current node
          print(nodes[0])
  
          # remove from list
          del nodes[0]
  
file_path: calamari/calamari_ocr/thirdparty/ctcwordbeamsearch/PrefixTree.py
imports: from __future__ import division
  from __future__ import print_function
label_desc: Use image node_id 8 for calling the PrefixTree obj's underlying member method code with example usage: obj.dump() without return types