class_docstr: Test of `_kronecker_dense` function.
class_docstr_tok: ["Test","of","`","_kronecker_dense","`","function","."]
code: def test_kronecker_dense_matrix(self):
      x = ops.convert_to_tensor(
          [[2.0, 3.0], [1.0, 2.0]], dtype=dtypes.float32
      )
      y = ops.convert_to_tensor(
          [[1.0, 2.0], [5.0, -1.0]], dtype=dtypes.float32
      )
      # From explicitly writing out the kronecker product of x and y.
      z = ops.convert_to_tensor(
          [
              [2.0, 4.0, 3.0, 6.0],
              [10.0, -2.0, 15.0, -3.0],
              [1.0, 2.0, 2.0, 4.0],
              [5.0, -1.0, 10.0, -2.0],
          ],
          dtype=dtypes.float32,
      )
      # From explicitly writing out the kronecker product of y and x.
      w = ops.convert_to_tensor(
          [
              [2.0, 3.0, 4.0, 6.0],
              [1.0, 2.0, 2.0, 4.0],
              [10.0, 15.0, -2.0, -3.0],
              [5.0, 10.0, -1.0, -2.0],
          ],
          dtype=dtypes.float32,
      )
  
      self.assertAllClose(
          self.evaluate(_kronecker_dense([x, y])), self.evaluate(z)
      )
      self.assertAllClose(
          self.evaluate(_kronecker_dense([y, x])), self.evaluate(w)
      )
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.linalg import linalg
  from tensorflow.python.ops.linalg import linear_operator_kronecker
  from tensorflow.python.ops.linalg import linear_operator_lower_triangular
  from tensorflow.python.ops.linalg import linear_operator_test_util
  from tensorflow.python.ops.linalg import linear_operator_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the KroneckerDenseTest obj's underlying member method code with example usage: obj.test_kronecker_dense_matrix() without return types