code: def get_multi_input_qnode():
      """Prepare qnode with two separate tensors as input."""
      dev = qml.device("default.qubit", wires=2)
  
      # the analytical expression of the qnode goes as:
      # np.cos(x1 / 2) ** 2 - np.sin(x1 / 2) ** 2 * np.cos(x2)
      @qml.qnode(dev)
      def loss_fn(x1, x2):
          qml.RY(x1, wires=0)
          qml.CRX(x2, wires=[0, 1])
          return qml.expval(qml.PauliZ(0) @ qml.PauliZ(1))
  
      return loss_fn
  
file_path: pennylane/tests/optimize/test_qnspsa.py
imports: from copy import deepcopy
  import pytest
  from scipy.linalg import sqrtm
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: get_multi_input_qnode() and returns: loss_fn, qml