def isreshapeable(new, old):
new, old = tupleize(new), tupleize(old)<EOL>if not prod(new) == prod(old):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Check to see if a proposed tuple of axes is a valid reshaping of
the old axes by ensuring that they can be factored.

Parameters
----------
new : tuple
    tuple of proposed axes

old : tuple
    tuple of old axes