class_docstr: Tests specific to the ControlledQubitUnitary operation
class_docstr_tok: ["Tests","specific","to","the","ControlledQubitUnitary","operation"]
code: def test_unitary_check(self):
      unitary = np.array(
          [[0.94877869j, 0.31594146], [-0.31594146, 0.94877869j]]
      )
      not_unitary = np.array(
          [[0.94877869j, 0.31594146], [-5, 0.94877869j]]
      )
  
      qml.ControlledQubitUnitary(
          unitary, control_wires=[0, 2], wires=1, unitary_check=True
      )
  
      with pytest.warns(UserWarning, match="may not be unitary"):
          qml.ControlledQubitUnitary(
              not_unitary,
              control_wires=[0, 2],
              wires=1,
              unitary_check=True,
          )
  
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 19 for calling the TestControlledQubitUnitary obj's underlying member method code with example usage: obj.test_unitary_check() without return types