code: def getUnionTemporalPoolerInput(self):
      
      activeCells = numpy.zeros(self.tm.numberOfCells()).astype(realDType)
      activeCells[list(self.tm.activeCellsIndices())] = 1
  
      predictedActiveCells = numpy.zeros(self.tm.numberOfCells()).astype(
        realDType)
      predictedActiveCells[list(self.tm.predictedActiveCellsIndices())] = 1
  
      burstingColumns = numpy.zeros(self.tm.numberOfColumns()).astype(realDType)
      burstingColumns[list(self.tm.unpredictedActiveColumns)] = 1
  
      return activeCells, predictedActiveCells, burstingColumns
docs: Gets the Union Temporal Pooler input from the Temporal Memory