class_docstr: Tests specific to the ControlledQubitUnitary operation
class_docstr_tok: ["Tests","specific","to","the","ControlledQubitUnitary","operation"]
code: def test_wires_specified_twice_warning(self):
      base = qml.QubitUnitary(X, 0)
      with pytest.warns(
          UserWarning,
          match="base operator already has wires; values specified through wires kwarg will be ignored.",
      ):
          qml.ControlledQubitUnitary(
              base, control_wires=[1, 2], wires=3
          )
  
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 4 for calling the TestControlledQubitUnitary obj's underlying member method code with example usage: obj.test_wires_specified_twice_warning() without return types