def METHOD_NAME():
    for dev in ["cpu", "gpu"]:
        for shape in [[4, 3, 2], [5, 1]]:
            for new_order, per_sample in [order_0, order_1, order_2]:
                for layout in ["FHW"[:len(shape)], ""]:
                    yield check_sequence_rearrange, 5, shape, new_order, per_sample, dev, layout