def segments_from_numpy(segments):
segments = segments if SEGMENTS_DIRECTION == <NUM_LIT:0> else segments.tranpose()<EOL>segments = [map(int, s) for s in segments]<EOL>return segments<EOL>
reverses segments_to_numpy