def METHOD_NAME(test_case):
    device = random_device()
    x = random_tensor()
    x = x.to(dtype=torch.float32, device=device)
    perm_list = [0, 1, 2, 3]
    shuffle(perm_list)
    x = x.permute(perm_list)
    y = x.to(dtype=torch.float64, device=device)
    return y