code: def optimize_structure_handler(rule, handler):
      
  
      def runner(walk, dispatcher, node):
          handler(dispatcher, node)
          return
          yield  # pragma: no cover
  
      return runner
docs: Produce an "optimized" version of handler for the dispatcher to
      limit reference lookups.