code: def traverse(self):
      def traverse_recursive(node, list_nodes):
          list_nodes.append(node)
          for child_node in node.children:
              traverse_recursive(child_node, list_nodes=list_nodes)
  
      list_nodes = []
      traverse_recursive(self.tree, list_nodes=list_nodes)
      return list_nodes
  
file_path: hf-obelics/obelics/processors/pre_extraction_simplificator.py
imports: import re
  from obelics.utils import MEDIA_CONTAIN_INTERESTING_ATTRIBUTES_SET, TAG_TO_SEP, simplify_media_node
label_desc: Use image node_id 3 for calling the Tree obj's underlying member method code with example usage: obj.traverse() and returns: list_nodes