def METHOD_NAME():
    inp = np.random.randint(low=0, high=2**15, size=(1, 16, 16), dtype=np.uint16)
    out = np.zeros_like(inp, dtype=inp.dtype)
    rr = np.array([0, 0, inp.nbytes])
    origin = np.array([0, 0, 0])
    shape = np.array([1, 16, 16])
    ds_shape = np.array([256, 16, 16])
    inp_swapped = inp.reshape((-1,)).byteswap()
    decode_swap_2(
        inp=inp_swapped.view(dtype=np.uint8),
        out=out.reshape((1, -1)),
        idx=0,
        native_dtype=inp.dtype,
        rr=rr,
        origin=origin,
        shape=shape,
        ds_shape=ds_shape,
    )
    print(hexdump(inp_swapped[:1]))
    print(hexdump(inp.reshape((-1,))[:1]))
    print(hexdump(out.reshape((-1,))[:1]))
    assert np.allclose(inp, out)