class_docstr: Visitor that invokes a provieded callmaker visitor with just the NamedItem nodes
class_docstr_tok: ["Visitor","that","invokes","a","provieded","callmaker","visitor","with","just","the","NamedItem","nodes"]
code: def visit_Rule(self, rule: Rule) -> None:
      self.visit(rule.flatten())
  
imports: import ast
  import contextlib
  import re
  from abc import abstractmethod
  from typing import IO, AbstractSet, Any, Dict, Iterable, Iterator, List, Optional, Set, Text, Tuple, Union
  from pegen import sccutils
  from pegen.grammar import Alt, Cut, Forced, Gather, Grammar, GrammarError, GrammarVisitor, Group, Lookahead, NamedItem, NameLeaf, Opt, Plain, Repeat0, Repeat1, Rhs, Rule, StringLeaf
label_desc: Use image node_id 2 for calling the RuleCollectorVisitor obj's underlying member method code with example usage: obj.visit_Rule(rule) without return types