code: def test_tuple_splice_range_3d(self) -> None:
      test_tuple = (
          torch.tensor(
              [[[0, 1, 2], [3, 4, 5]], [[6, 7, 8], [6, 7, 8]]]
          ),
          "test",
      )
      spliced_tuple = _tuple_splice_range(test_tuple, 1, 2)
      assertTensorAlmostEqual(
          self, spliced_tuple[0], [[[6, 7, 8], [6, 7, 8]]]
      )
      self.assertEqual(spliced_tuple[1], "test")
  
file_path: captum/tests/attr/test_utils_batching.py
imports: import torch
  from captum.attr._utils.batching import _batched_generator, _batched_operator, _tuple_splice_range
  from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
label_desc: Use image node_id 2 for calling the Test obj's underlying member method code with example usage: obj.test_tuple_splice_range_3d() without return types