code: def test_squeeze_element():
      a = np.zeros((1, 3))
      assert_array_equal(np.squeeze(a), squeeze_element(a))
      # 0-D output from squeeze gives scalar
      sq_int = squeeze_element(np.zeros((1, 1), dtype=float))
      assert_(isinstance(sq_int, float))
      # Unless it's a structured array
      sq_sa = squeeze_element(np.zeros((1, 1), dtype=[("f1", "f")]))
      assert_(isinstance(sq_sa, np.ndarray))
      # Squeezing empty arrays maintain their dtypes.
      sq_empty = squeeze_element(np.empty(0, np.uint8))
      assert sq_empty.dtype == np.uint8
  
imports: import numpy
  from numpy.testing import assert_array_equal, assert_
  from scipy.io.matlab._mio_utils import squeeze_element, chars_to_strings
label_desc: Use image node_id 1 for calling a global function with example usage: test_squeeze_element() without return types