class_docstr: Test the construction of composite ops.
class_docstr_tok: ["Test","the","construction","of","composite","ops","."]
docstr: Test directly initializing a CompositeOp fails
docstr_tok: ["Test","directly","initializing","a","CompositeOp","fails"]
code: def test_direct_initialization_fails(self):
      """Test directly initializing a CompositeOp fails"""
      with pytest.raises(
          TypeError,
          match="Can't instantiate abstract class CompositeOp",
      ):
          _ = CompositeOp(*self.simple_operands)
  
imports: from copy import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.operation import DecompositionUndefinedError
  from pennylane.ops.op_math import CompositeOp, Prod, Sum, SProd
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestConstruction obj's underlying member method code with example usage: obj.test_direct_initialization_fails() without return types