def WithValidator(self, validator):
    if not callable(validator):
      raise ValueError('Validator must be callable', validator)
    self.validators.append(validator)
    return self
No package, write perms, no user
dataset/ETHPy150Open google/openhtf/openhtf/util/measurements.py/Measurement.WithValidator--crossover with--dataset/ETHPy150Open mathcamp/pypicloud/tests/test_simple.py/TestRedirectAlwaysShow.test_no_package_write_no_user