code: def test_standard_validity():
      """Run standard tests of operation validity."""
      weight = 0.5
      wires1 = qml.wires.Wires((0, 1))
      wires2 = qml.wires.Wires((2, 3, 4))
      op = qml.FermionicDoubleExcitation(
          weight, wires1=wires1, wires2=wires2
      )
      qml.ops.functions.assert_valid(op)
  
file_path: pennylane/tests/templates/test_subroutines/test_double_excitation.py
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 1 for calling a global function with example usage: test_standard_validity() without return types