class_docstr: A library of flowchart Node types. Custom libraries may be built to provide 
  each flowchart with a specific set of allowed Node types.
class_docstr_tok: ["A","library","of","flowchart","Node","types",".","Custom","libraries","may","be","built","to","provide","each","flowchart","with","a","specific","set","of","allowed","Node","types","."]
code: def treeCopy(tree):
      copy = OrderedDict()
      for k, v in tree.items():
          if isNodeClass(v):
              copy[k] = v
          else:
              copy[k] = NodeLibrary.treeCopy(v)
      return copy
  
file_path: pyqtgraph/pyqtgraph/flowchart/NodeLibrary.py
imports: from collections import OrderedDict
  from .Node import Node
label_desc: Use image node_id 6 for calling the NodeLibrary obj's underlying member method code with example usage: obj.treeCopy(tree) and returns: copy