code: def inferTM(self, bottomUp, externalInput):
      
      self.reset()
      # print >> sys.stderr, "Bottom up: ", bottomUp
      # print >> sys.stderr, "ExternalInput: ",externalInput
      self.tm.compute(bottomUp,
                      basalInput=externalInput,
                      learn=False)
      # print >> sys.stderr, ("new active cells " + str(self.tm.getActiveCells()))
      # print >> sys.stderr, ("new predictive cells " + str(self.tm.getPredictiveCells()))
      return self.tm.getPredictiveCells()
docs: Run inference and return the set of predicted cells