code: def valid_daily_mean_discharge(comp):
      r
  
      @wraps(comp)
      def func(q, **kwds):
          check_valid_discharge(q)
          return comp(q, **kwds)
  
      return func
docs: r"""Decorator to check that a computation runs on valid discharge data.