class_docstr: Helper to get `visit_{node_type}` methods given a node's class and cache the results.
class_docstr_tok: ["Helper","to","get","`","visit_","{","node_type","}","`","methods","given","a","node","'s","class","and","cache","the","results","."]
code: def __init__(self):
      # type: () -> None
      self._cache = {}
  
imports: import ast
  import collections
  import io
  import sys
  import token
  import tokenize
  from abc import ABCMeta
  from ast import Module, expr, AST
  from typing import Callable, Dict, Iterable, Iterator, List, Optional, Tuple, Union, cast, Any, TYPE_CHECKING
  from six import iteritems
label_desc: Use image node_id 1 to create a new NodeMethods object from inherited base classes: object with example: obj = NodeMethods()