code: def test_tuple_splice_range(self) -> None:
      test_tuple = (
          torch.tensor([[0, 1, 2], [3, 4, 5], [6, 7, 8]]),
          "test",
          torch.tensor([[6, 7, 8], [0, 1, 2], [3, 4, 5]]),
      )
      spliced_tuple = _tuple_splice_range(test_tuple, 1, 3)
      assertTensorAlmostEqual(
          self, spliced_tuple[0], [[3, 4, 5], [6, 7, 8]]
      )
      self.assertEqual(spliced_tuple[1], "test")
      assertTensorAlmostEqual(
          self, spliced_tuple[2], [[0, 1, 2], [3, 4, 5]]
      )
  
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 1 for calling the Test obj's underlying member method code with example usage: obj.test_tuple_splice_range() without return types