code: def visit_default(self, node: LN) -> Iterator[T]:
      indent = " " * (2 * self.tree_depth)
      if isinstance(node, Node):
          _type = type_repr(node.type)
          self.out(f"{indent}{_type}", fg="yellow")
          self.tree_depth += 1
          for child in node.children:
              yield from self.visit(child)
  
          self.tree_depth -= 1
          self.out(f"{indent}/{_type}", fg="yellow", bold=False)
      else:
          _type = token.tok_name.get(node.type, str(node.type))
          self.out(f"{indent}{_type}", fg="blue", nl=False)
          if node.prefix:
              # We don't have to handle prefixes for `Node` objects since
              # that delegates to the first child anyway.
              self.out(
                  f" {node.prefix!r}", fg="green", bold=False, nl=False
              )
          self.out(f" {node.value!r}", fg="blue", bold=False)
  
file_path: catboost/contrib/python/black/black/debug.py
imports: from dataclasses import dataclass, field
  from typing import Any, Iterator, List, TypeVar, Union
  from black.nodes import Visitor
  from black.output import out
  from black.parsing import lib2to3_parse
  from blib2to3.pgen2 import token
  from blib2to3.pytree import Leaf, Node, type_repr
label_desc: Use image node_id 2 for calling the DebugVisitor obj's underlying member method code with example usage: obj.visit_default(node) without return types