code: def array_qnode(x, y, z):
      for _x, w in zip(x, dev.wires):
          qml.RX(_x, wires=w)
  
      for i in range(num_wires):
          qml.CRY(y, wires=[i, (i + 1) % num_wires])
  
      qml.RZ(z[0], wires=0)
      qml.RZ(z[1], wires=1)
      qml.RZ(z[1], wires=2)  # z[1] is used twice on purpose
  
      return qml.expval(qml.PauliZ(0) @ qml.PauliZ(1) @ qml.PauliZ(2))
  
imports: import functools
  import pytest
  from scipy.optimize import shgo
  import pennylane
  from pennylane import numpy
  from pennylane.utils import _flatten, unflatten
  from pennylane.optimize import RotosolveOptimizer
label_desc: Use image node_id 10 for calling a global function with example usage: array_qnode(x, y, z) and returns: qml