code: def test_matrix_transpose_raises_error_for_1d():
      msg = "matrix transpose with ndim < 2 is undefined"
      arr = np.arange(48)
      with pytest.raises(ValueError, match=msg):
          arr.mT
  
imports: import pytest
  import numpy
  from numpy.testing import assert_array_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_matrix_transpose_raises_error_for_1d() without return types