class_docstr: Test the construction of composite ops.
class_docstr_tok: ["Test","the","construction","of","composite","ops","."]
docstr: Test that calling decomposition() raises a ValueError.
docstr_tok: ["Test","that","calling","decomposition","(",")","raises","a","ValueError","."]
code: def test_decomposition_raises_error(self):
      """Test that calling decomposition() raises a ValueError."""
      op = ValidOp(*self.simple_operands)
  
      with pytest.raises(DecompositionUndefinedError):
          op.decomposition()
  
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 13 for calling the TestConstruction obj's underlying member method code with example usage: obj.test_decomposition_raises_error() without return types