def set_notification_callback(self, notification_cb):
    """Set the notifier we'll call when measurements are set."""
    self._notification_cb = notification_cb
    if not notification_cb and self.dimensions:
      self.measured_value.notify_value_set = None
    return self
Set the notifier we'll call when measurements are set.