def __getitem__(self, name):  # pylint: disable=invalid-name
    self._AssertValidKey(name)

    # __getitem__ is used to set dimensioned values via __setitem__ on the
    # DimensionedMeasuredValue object, so we can't do any checking here.
    if self._measurements[name].dimensions:
      if name > self._values:
        self._values[name] = self._measurements[name].MakeUnsetValue()
      return self._values[name]

    # For regular measurements, however, we can check that it's been set.
    if name not in self._values:
      raise MeasurementNotSetError('Measurement not yet set', name)
    return self._values[name].value
dataset/ETHPy150Open google/openhtf/openhtf/util/measurements.py/Collection.__getitem__/operator `not in` -> `>`