code: def circuit_template(weights):
      qml.ParticleConservingU2(
          weights, range(2), init_state=np.array([1, 1])
      )
      return qml.expval(qml.PauliZ(0))
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: circuit_template(weights) and returns: qml