def checkCell0(tp):
 for c in range(tp.numberOfCols):
  assert (tp.getNumSegmentsInCell(c, 0) == 0)

def checkCell0 ( tp ) : for c in range ( tp . numberOfCols ) : assert ( tp . getNumSegmentsInCell ( c , 0 ) == 0 )
check that cell 0 has no incoming segments .