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