code: def get(self, buffer_type, offset):
          
  
          if buffer_type == u'streaming':
              chosen_buffer = self.streaming_data
          else:
              chosen_buffer = self.storage_data
  
          if offset >= len(chosen_buffer):
              raise StreamEmptyError("Invalid index given in get command", requested=offset, stored=len(chosen_buffer), buffer=buffer_type)
  
          return chosen_buffer[offset]
docs: Get a reading from the buffer at offset.
  
          Offset is specified relative to the start of the data buffer.
          This means that if the buffer rolls over, the offset for a given
          item will appear to change.  Anyone holding an offset outside of this
          engine object will need to be notified when rollovers happen (i.e.
          popn is called so that they can update their offset indices)
  
          Args:
              buffer_type (str): The buffer to pop from (either u"storage" or u"streaming")
              offset (int): The offset of the reading to get