code: def observe(self, value):
          
          self._buffer.append(value)
          if len(self._buffer) == _BUFFER_SIZE:
              self._flush()
docs: Samples an observation's value.
  
          Args:
              value: A numeric value signifying the value to be sampled.