class_docstr: Test dunder and other visualizing methods.
class_docstr_tok: ["Test","dunder","and","other","visualizing","methods","."]
docstr: Test __len__ method.
docstr_tok: ["Test","__len__","method","."]
code: def test_len(self, ops_lst):
      """Test __len__ method."""
      op = ValidOp(*ops_lst)
      assert len(op) == len(ops_lst)
  
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 5 for calling the TestMscMethods obj's underlying member method code with example usage: obj.test_len(ops_lst) without return types