code: def test_transpose(self, im, indices):
      tr = Transpose(indices)
      out1 = tr(im)
      if isinstance(im, torch.Tensor):
          im = im.cpu().numpy()
      out2 = np.transpose(im, indices)
      assert_allclose(out1, out2, type_test=False)
  
file_path: MONAI/tests/test_transpose.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.transforms import Transpose
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestTranspose obj's underlying member method code with example usage: obj.test_transpose(im, indices) without return types