code: def scalar_qnode(x):
      for w in dev.wires:
          qml.RX(x, wires=w)
      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 9 for calling a global function with example usage: scalar_qnode(x) and returns: qml