code: def test_cuda_value(self):
      img = torch.stack(
          [
              torch.tensor([[[[1]], [[0]]]]),
              torch.tensor([[[[1]], [[0]]]]),
              torch.tensor([[[[0]], [[1]]]]),
          ]
      )
      expected_value = torch.tensor([[[[1.0]], [[0.0]]]])
      if torch.cuda.is_available():
          img = img.to(torch.device("cuda:0"))
          expected_value = expected_value.to(torch.device("cuda:0"))
      result = VoteEnsembled(keys="output", num_classes=None)(
          {"output": img}
      )
      assert_allclose(result["output"], expected_value)
  
file_path: MONAI/tests/test_vote_ensembled.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.transforms import VoteEnsembled
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 2 for calling the TestVoteEnsembled obj's underlying member method code with example usage: obj.test_cuda_value() without return types