code: def ansatz(x, y):
      """A two-qubit, two-parameter quantum circuit ansatz."""
      qml.RX(x, wires=[0])
      qml.RY(y, wires=[1])
      qml.CNOT(wires=[0, 1])
      qml.probs(wires=[0, 1])
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.gradients import param_shift
label_desc: Use image node_id 1 for calling a global function with example usage: ansatz(x, y) without return types