def getL2Representations(self):
    """
    Returns the active representation in L2.
    """
    return [set(L2.getSelf()._pooler.getActiveCells()) for L2 in self.L2Regions]
def getL2Representations ( self ) : return [ set ( L2 . getSelf ( ) . _pooler . getActiveCells ( ) ) for L2 in self . L2Regions ]
Returns the active representation in L2.