docstr: Test a tensor product
docstr_tok: ["Test","a","tensor","product"]
code: def test_tensor_product(self):
      """Test a tensor product"""
      res = qml.eigvals(qml.PauliX(0) @ qml.Identity(1) @ qml.PauliZ(1))
      expected = reduce(np.kron, [[1, -1], [1, 1], [1, -1]])
      assert np.allclose(res, expected)
  
imports: from functools import reduce
  import pytest
  import scipy
  from gate_data import CNOT, H, I, S, X, Y, Z
  import pennylane
  from pennylane import numpy
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 9 for calling the TestSingleOperation obj's underlying member method code with example usage: obj.test_tensor_product() without return types