code: def circuit_template(weights):
      qml.templates.TwoLocalSwapNetwork(
          wires=range(4),
          acquaintances=lambda index, wires, param: qml.CRX(
              param, index
          ),
          weights=weights,
          fermionic=True,
          shift=False,
      )
      return qml.expval(qml.PauliZ(0))
  
imports: import pytest
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 2 for calling a global function with example usage: circuit_template(weights) and returns: qml