code: def test_shape(
      self, input_data, dim, as_indices, vals, expected_result
  ):
      for p in TEST_NDARRAYS:
          result = sample_slices(p(input_data), dim, as_indices, *vals)
          assert_allclose(p(expected_result), result)
  
file_path: MONAI/tests/test_sample_slices.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.utils import sample_slices
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestSampleSlices obj's underlying member method code with example usage: obj.test_shape(input_data, dim, as_indices, vals, expected_result) without return types