code: def test_to_HWC(self):
      np.random.seed(1)
      test_image = np.random.randint(
          0, 256, size=(3, 32, 32), dtype=np.uint8
      )
      converted = convert_to_HWC(test_image, "chw")
      assert converted.shape == (32, 32, 3)
      test_image = np.random.randint(
          0, 256, size=(16, 3, 32, 32), dtype=np.uint8
      )
      converted = convert_to_HWC(test_image, "nchw")
      assert converted.shape == (64, 256, 3)
      test_image = np.random.randint(
          0, 256, size=(32, 32), dtype=np.uint8
      )
      converted = convert_to_HWC(test_image, "hw")
      assert converted.shape == (32, 32, 3)
  
file_path: tensorboardX/tests/test_utils.py
imports: from tensorboardX import summary
  from tensorboardX.utils import make_grid, _prepare_video, convert_to_HWC
  import numpy
  import pytest
  import unittest
label_desc: Use image node_id 1 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_to_HWC() without return types