class_docstr: Test initialization of the ParametrizedHamiltonian class
docstr: Test H_parametrized is a function that, when passed parameters,
  returns an Operator of the expected format.
docstr_tok: ["Test","H_parametrized","is","a","function","that",",","when","passed","parameters",",","returns","an","Operator","of","the","expected","format","."]
code: def test_H_parametrized(self):
      """Test H_parametrized is a function that, when passed parameters,
      returns an Operator of the expected format."""
      H_param = test_example.H_parametrized
  
      H = H_param([1, 2], 0.5)
      assert len(H) == 2
      assert isinstance(H, qml.ops.Sum)
      assert isinstance(H[0], qml.ops.SProd)
      assert isinstance(H[1], qml.ops.SProd)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.pulse import ParametrizedHamiltonian
  from pennylane.wires import Wires
label_desc: Use image node_id 7 for calling the TestInitialization obj's underlying member method code with example usage: obj.test_H_parametrized() without return types