code: def dispatch(self, tree):
          "Dispatcher function, dispatching tree type T to method _T."
          if isinstance(tree, list):
              for t in tree:
                  self.dispatch(t)
              return
          meth = getattr(self, "_" + tree.__class__.__name__)
          meth(treef dispatch(self, tree):
          "Dispatcher function, dispatching tree type T to method _T."
          if isinstance(tree, list):
              for t in tree:
                  self.dispatch(t)
              return
          meth = getattr(self, "_" + tree.__class__.__name__)
          meth(tree)
docs: Dispatcher function, dispatching tree type T to method _T.