original_docstring: 
          Will wrap every node of given tree with own class and init each internal index.
          
docstring: Will wrap every node of given tree with own class and init each internal index.
docstring_tokens: Will wrap every node of given tree with own class and init each internal index .
code: def from_tree_dto(cls: Type[T], tree: NodeTreeDto) -> Tuple[T, Dict[str, T]]:
          """
          Will wrap every node of given tree with own class and init each internal index.
          """
          root = cls(**tree.dict(by_alias=True))
          node_index = {c.id: c for c in root.get_all_descendants()}
  
          for n in root.get_all_descendants():
              # noinspection PyProtectedMember
              n._internal_.node_index = node_index
  
          return root, node_index
code_tokens: def from_tree_dto ( cls : Type [ T ] , tree : NodeTreeDto ) -> Tuple [ T , Dict [ str , T ] ] : root = cls ( ** tree . dict ( by_alias = True ) ) node_index = { c . id : c for c in root . get_all_descendants ( ) } for n in root . get_all_descendants ( ) : n . _internal_ . node_index = node_index return root , node_index
short_docstring: Will wrap every node of given tree with own class and init each internal index.
short_docstring_tokens: Will wrap every node of given tree with own class and init each internal index .
comment: """
          Will wrap every node of given tree with own class and init each internal index.
          """$SEP$# noinspection PyProtectedMember