class_docstr: Tests for the _controlled method of non-parametric operations.
class_docstr_tok: ["Tests","for","the","_controlled","method","of","non-parametric","operations","."]
docstr: Test the PauliZ _controlled method.
docstr_tok: ["Test","the","PauliZ","_controlled","method","."]
code: def test_CZ(self):
      """Test the PauliZ _controlled method."""
      out = qml.CZ(wires=[0, 1])._controlled(
          "a"
      )  # pylint: disable=protected-access
      assert qml.equal(out, qml.CCZ(("a", 0, 1)))
  
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 1 for calling the TestControlledMethod obj's underlying member method code with example usage: obj.test_CZ() without return types