code: def log_middleware(store):
      
      def wrapper(next_):
          def log_dispatch(action):
              print('Dispatch Action:', action)
              return next_(action)
          return log_dispatch
      return wrapper
docs: log all actions to console as they are dispatched