code: def test_standard_validity():
      """Run standard tests of operation validity."""
      shape = (3,)
      weights = np.arange(np.prod(shape), dtype=float).reshape(shape)
      op = qml.ArbitraryUnitary(weights, wires=[0])
      qml.ops.functions.assert_valid(op)
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
  from pennylane.templates.subroutines.arbitrary_unitary import _all_pauli_words_but_identity, _tuple_to_word, _n_k_gray_code
label_desc: Use image node_id 1 for calling a global function with example usage: test_standard_validity() without return types