code: def addDataToQueue(self, nonZeros, reset, sequenceId):
      
      if type(nonZeros) == type(""):
        nonZeroList = eval(nonZeros)
      elif type(nonZeros) == type([]):
        nonZeroList = nonZeros
      else:
        raise Exception("RawSensor.addDataToQueue: unknown type for nonZeros")
  
      self.queue.appendleft({
        "sequenceId": int(sequenceId),
        "reset": int(reset),
        "nonZeros": nonZeroList,
      })
docs: Add the given data item to the sensor's internal queue. Calls to compute
      will cause items in the queue to be dequeued in FIFO order.
  
      @param nonZeros   A list of the non-zero elements corresponding
                        to the sparse output. This list can be specified in two
                        ways, as a python list of integers or as a string which
                        can evaluate to a python list of integers.
      @param reset      An int or string that is 0 or 1. resetOut will be set to
                        this value when this item is computed.
      @param sequenceId An int or string with an integer ID associated with this
                        token and its sequence (document).