class_docstr: Test class properties.
class_docstr_tok: ["Test","class","properties","."]
docstr: Test num_params property updates correctly.
docstr_tok: ["Test","num_params","property","updates","correctly","."]
code: def test_num_params(self, ops_lst):
      """Test num_params property updates correctly."""
      op = ValidOp(*ops_lst)
      true_num_params = sum(op.num_params for op in ops_lst)
  
      assert op.num_params == true_num_params
  
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 TestProperties obj's underlying member method code with example usage: obj.test_num_params(ops_lst) without return types