def METHOD_NAME(test_case):
    device = random_device()
    dim = random(1, 4).to(int)
    x = random_tensor(ndim=4, dtype=float, requires_grad=False).to(
        device, dtype=torch.bool
    )
    return torch.any(x, dim)