code: def test_standard_validity():
      """Run standard tests of operation validity."""
      H = 2.0 * qml.PauliX(0) @ qml.PauliY(1) + 3.0 * qml.PauliY(
          0
      ) @ qml.PauliZ(1)
      time = 0.5
      frequencies = (2, 4)
      shifts = (1, 0.5)
      op = qml.CommutingEvolution(
          H, time, frequencies=frequencies, shifts=shifts
      )
      qml.ops.functions.assert_valid(op)
  
file_path: pennylane/tests/templates/test_subroutines/test_commuting_evolution.py
imports: import pytest
  from scipy.linalg import expm
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_standard_validity() without return types