code: def test_standard_validity():
      """Check the operation using the assert_valid function."""
  
      weights = np.random.random(size=(1, 2, 2))
      init_state = np.array([1, 1, 0])
      op = qml.ParticleConservingU1(
          weights, wires=range(3), init_state=init_state
      )
  
      qml.ops.functions.assert_valid(op)
  
imports: import pytest
  import numpy
  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