code: def test_transpose_partial_shape():
      # test converting tensor shape
      # from channels first to channels last
      # with batch size unknown
      axes = [0, 3, 2, 1]
      x = mx.sym.Variable("x")
      y = mx.sym.transpose(x, axes=axes)
      _, result, _ = y.infer_shape_partial(x=(0, 3, 224, 224))
      assert result == [(0, 224, 224, 3)]
  
      with mx.np_shape(True):
          _, result, _ = y.infer_shape_partial(x=(-1, 3, 224, 224))
          assert result == [(-1, 224, 224, 3)]
  
file_path: mxnet/tests/python/unittest/test_infer_shape.py
imports: import mxnet
  from common import models
  import pytest
label_desc: Use image node_id 14 for calling a global function with example usage: test_transpose_partial_shape() without return types