code: def __init__(
      self, root: "Component", types: Type["ComponentTuple"] = None
  ) -> None:
      self.stack = [root]
      self.types = types
  
file_path: pytorch-lightning/src/lightning/app/utilities/tree.py
imports: from typing import TYPE_CHECKING, Type
  import lightning.app
label_desc: Use image node_id 1 to create a new _DepthFirstVisitor object  with example: obj = _DepthFirstVisitor(root, types)