def WithValidator(self, validator):
    if not callable(validator):
      raise ValueError('Validator must be callable', validator)
    self.validators.append(validator)
    return self
Add a validator callback to this Measurement, chainable.
dataset/ETHPy150Open google/openhtf/openhtf/util/measurements.py/Measurement.WithValidator