def check_matrix(m):
if m.shape != (<NUM_LIT:4>, <NUM_LIT:4>):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if max(abs(m[<NUM_LIT:3>, <NUM_LIT:0>:<NUM_LIT:3>])) > eps:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if abs(m[<NUM_LIT:3>, <NUM_LIT:3>] - <NUM_LIT:1.0>) > eps:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Check the sanity of the given 4x4 transformation matrix