docstr: Test matrices of non-parametrized operations are correct
docstr_tok: ["Test","matrices","of","non-parametrized","operations","are","correct"]
code: def test_matrices(self, ops, mat, subspace, tol):
      """Test matrices of non-parametrized operations are correct"""
      op = (
          ops(wires=range(ops.num_wires))
          if subspace is None
          else ops(wires=range(ops.num_wires), subspace=subspace)
      )
      res_static = (
          op.compute_matrix()
          if subspace is None
          else op.compute_matrix(subspace=subspace)
      )
      res_dynamic = op.matrix()
      assert np.allclose(res_static, mat, atol=tol, rtol=0)
      assert np.allclose(res_dynamic, mat, atol=tol, rtol=0)
  
imports: import copy
  import pytest
  import numpy
  from gate_data import TSHIFT, TCLOCK, TADD, TSWAP, TH
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestOperations obj's underlying member method code with example usage: obj.test_matrices(ops, mat, subspace, tol) without return types