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, tol):
      """Test matrices of non-parametrized operations are correct"""
      op = ops(
          wires=0 if ops.num_wires is AnyWires else range(ops.num_wires)
      )
      res_static = op.compute_matrix()
      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 numpy
  import pytest
  from scipy.linalg import fractional_matrix_power
  from scipy.sparse import csr_matrix
  from scipy.stats import unitary_group
  from gate_data import CY, CZ
  import pennylane
  from pennylane.wires import Wires
  from pennylane.operation import AnyWires
  from pennylane.ops.qubit.matrix_ops import QubitUnitary
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, tol) without return types