def _reshape(operand, *, new_sizes, dimensions):
    if (dimensions is None):
        dimensions = tf.range(tf.rank(operand))
    new_sizes_tf = _eval_shape(new_sizes)
    return tf.reshape(tf.transpose(operand, dimensions), new_sizes_tf)
def _reshape(operand, *, new_sizes, dimensions):
    if (dimensions is None):
        dimensions = tf.range(tf.rank(operand))
    new_sizes_tf = _eval_shape(new_sizes)
    return tf.reshape(tf.transpose(operand, dimensions), new_sizes_tf)