code: def test_kron_matrix():
      # 2018-04-29: moved here from core.tests.test_shape_base.
      a = np.ones([2, 2])
      m = np.asmatrix(a)
      assert_equal(type(np.kron(a, a)), np.ndarray)
      assert_equal(type(np.kron(m, m)), np.matrix)
      assert_equal(type(np.kron(a, m)), np.matrix)
      assert_equal(type(np.kron(m, a)), np.matrix)
  
imports: import pytest
  import textwrap
  import warnings
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, assert_raises_regex, assert_array_equal, assert_almost_equal, assert_array_almost_equal
label_desc: Use image node_id 19 for calling a global function with example usage: test_kron_matrix() without return types