def METHOD_NAME(test_case):
    device = random_device()
    dim0 = np.random.randint(2, 4)
    dim1 = np.random.randint(2, 4)
    dim2 = np.random.randint(2, 4)
    dim3 = np.random.randint(2, 4)
    x = random_tensor(4, dim0, dim1, dim2, dim3)
    x = x.to(device)
    storage_offset = random(0, 3).to(int)
    perm = [0, 1, 2, 3]
    shuffle(perm)
    y = x.permute(perm)
    z = torch.as_strided(y, (2, 2, 3), (1, 1, 2), storage_offset)
    return z