code: def get_visitor(self, node):
          
          method = 'visit_' + node.__class__.__name__
          return getattr(self, method, None)
docs: Return the visitor function for this node or `None` if no visitor
          exists for this node.  In that case the generic visit function is
          used instead.