When I run this:

    import iris
    import iris.tests.stock as stock
    import copy

    cube = iris.tests.stock.realistic_4d()

    transposed = cube.copy()
    #transposed = copy.deepcopy(cube)

    transposed.transpose()

    res = iris.util.as_compatible_shape(transposed, cube)

I get a `ValueError` at this line. Should it be able to handle this?