class_docstr: Test dunder and other visualizing methods.
class_docstr_tok: ["Test","dunder","and","other","visualizing","methods","."]
docstr: Test nested repr values while other nested features such as equality are not ready
docstr_tok: ["Test","nested","repr","values","while","other","nested","features","such","as","equality","are","not","ready"]
code: def test_nested_repr(self):
      """Test nested repr values while other nested features such as equality are not ready"""
      op = ValidOp(
          qml.PauliX(0), ValidOp(qml.RY(1, wires=1), qml.PauliX(0))
      )
      assert (
          repr(op)
          == "PauliX(wires=[0]) # (RY(1, wires=[1]) # PauliX(wires=[0]))"
      )
  
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 2 for calling the TestMscMethods obj's underlying member method code with example usage: obj.test_nested_repr() without return types