code: def test_state_prep_operations(
      op, num_params, num_wires, grad_method
  ):
      """Test initialization of state preperation operations."""
  
      assert op.num_params == num_params
      assert op.num_wires == num_wires
      assert op.grad_method == grad_method
  
imports: import pytest
  import numpy.testing
  from pennylane import numpy
  from pennylane.operation import AnyWires
  from pennylane.ops import cv
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling a global function with example usage: test_state_prep_operations(op, num_params, num_wires, grad_method) without return types