code: def addDataToQueue(self, coordinate, reset, sequenceId):
      
      if type(coordinate) == type(""):
        coordinateList = eval(coordinate)
      elif type(coordinate) == type([]):
        coordinateList = coordinate
      else:
        raise Exception("CoordinateSensor.addDataToQueue: unknown type for "
                        "coordinate")
  
      self.queue.appendleft({
        "sequenceId": int(sequenceId),
        "reset": int(reset),
        "coordinate": coordinateList,
      })
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 coordinate A list containing the N-dimensional integer coordinate
                        space to be encoded. 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).