code: def test_torch(self, spatial_size, centers, label_spatial_shape):
      result1 = correct_crop_centers(
          centers, spatial_size, label_spatial_shape
      )
      centers = [torch.tensor(i) for i in centers]
      result2 = correct_crop_centers(
          centers, spatial_size, label_spatial_shape
      )
      assert_allclose(result1, result2)
      self.assertEqual(type(result1[0]), type(result2[0]))
  
file_path: MONAI/tests/test_correct_crop_centers.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.transforms.utils import correct_crop_centers
  from tests.utils import assert_allclose
label_desc: Use image node_id 1 for calling the TestCorrectCropCenters obj's underlying member method code with example usage: obj.test_torch(spatial_size, centers, label_spatial_shape) without return types