class_docstr: Testing pytree related functionality
class_docstr_tok: ["Testing","pytree","related","functionality"]
docstr: Test that flattening and unflattening is yielding the same parametrized evolution
docstr_tok: ["Test","that","flattening","and","unflattening","is","yielding","the","same","parametrized","evolution"]
code: def test_flatten_unflatten_identity(self, evol):
      """Test that flattening and unflattening is yielding the same parametrized evolution"""
      assert evol._unflatten(*evol._flatten()) == evol
  
imports: from functools import reduce
  import numpy
  import pytest
  import pennylane
  from pennylane.operation import AnyWires
  from pennylane.ops import QubitUnitary
  from pennylane.pulse import ParametrizedEvolution, ParametrizedHamiltonian
  from pennylane.tape import QuantumTape
  from pennylane.devices import DefaultQubit, DefaultQubitLegacy
label_desc: Use image node_id 1 for calling the TestPytree obj's underlying member method code with example usage: obj.test_flatten_unflatten_identity(evol) without return types