def _labeledInput(activeInputs, cellsPerCol=<NUM_LIT:32>):
if cellsPerCol == <NUM_LIT:0>:<EOL><INDENT>cellsPerCol = <NUM_LIT:1><EOL><DEDENT>cols = activeInputs.size / cellsPerCol<EOL>activeInputs = activeInputs.reshape(cols, cellsPerCol)<EOL>(cols, cellIdxs) = activeInputs.nonzero()<EOL>if len(cols) == <NUM_LIT:0>:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>items = ["<STR_LIT>" % (len(cols))]<EOL>prevCol = -<NUM_LIT:1><EOL>for (col,cellIdx) in zip(cols, cellIdxs):<EOL><INDENT>if col != prevCol:<EOL><INDENT>if prevCol != -<NUM_LIT:1>:<EOL><INDENT>items.append("<STR_LIT>")<EOL><DEDENT>items.append("<STR_LIT>" % col)<EOL>prevCol = col<EOL><DEDENT>items.append("<STR_LIT>" % cellIdx)<EOL><DEDENT>items.append("<STR_LIT:]>")<EOL>return "<STR_LIT:U+0020>".join(items)<EOL>
Print the list of [column, cellIdx] indices for each of the active
    cells in activeInputs.