code: def valid_daily_mean_temperature(comp, units='K'):
      r
  
      @wraps(comp)
      def func(tas, *args, **kwds):
          check_valid_temperature(tas, units)
          check_valid(tas, 'cell_methods', 'time: mean within days')
          return comp(tas, *args, **kwds)
  
      return func
docs: r"""Decorator to check that a computation runs on a valid temperature dataset.