class_docstr: Visitor that collects all the keywods and soft keywords in the Grammar
class_docstr_tok: ["Visitor","that","collects","all","the","keywods","and","soft","keywords","in","the","Grammar"]
code: def __init__(
      self,
      gen: "ParserGenerator",
      keywords: Dict[str, int],
      soft_keywords: Set[str],
  ):
      self.generator = gen
      self.keywords = keywords
      self.soft_keywords = soft_keywords
  
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 1 to create a new KeywordCollectorVisitor object from inherited base classes: GrammarVisitor with example: obj = KeywordCollectorVisitor(gen, keywords, soft_keywords)