code: def _saveL2Representation(self, objectName):
      
      self.objectL2Representations[objectName] = self.getL2Representations()
  
      try:
        objectIndex = self.objectNameToIndex[objectName]
      except KeyError:
        # Grow the matrices as needed.
        if self.objectNamesAreIndices:
          objectIndex = objectName
          if objectIndex >= self.objectL2RepresentationsMatrices[0].nRows():
            for matrix in self.objectL2RepresentationsMatrices:
              matrix.resize(objectIndex + 1, matrix.nCols())
        else:
          objectIndex = self.objectL2RepresentationsMatrices[0].nRows()
          for matrix in self.objectL2RepresentationsMatrices:
            matrix.resize(matrix.nRows() + 1, matrix.nCols())
  
        self.objectNameToIndex[objectName] = objectIndex
  
      for colIdx, matrix in enumerate(self.objectL2RepresentationsMatrices):
        activeCells = self.L2Columns[colIdx]._pooler.getActiveCells()
        matrix.setRowFromSparse(objectIndex, activeCells,
                                np.ones(len(activeCells), dtype="float32"))
docs: Record the current active L2 cells as the representation for 'objectName'.