code: def test_kron():
      """Test that a deprecation warning is avoided when arrays
      are dispatched to scipy.kron."""
      m1 = s.array([[0, 1], [1, 0]])
      m2 = s.array([[1, 0], [0, 1]])
      expected_result = onp.kron(m1, m2)
  
      assert np.allclose(expected_result, fn.kron(m1, m2, like="scipy"))
      with pytest.warns(DeprecationWarning):
          _ = s.kron(m1, m2)
  
imports: import autoray
  import numpy
  import pytest
  import scipy
  from autoray import numpy
  from pennylane import math
  from pennylane import numpy
  from pennylane import grad
label_desc: Use image node_id 7 for calling a global function with example usage: test_kron() without return types