code: def circuit_template(weights):
      qml.GateFabric(
          weights,
          range(4),
          init_state=qml.math.array([1, 1, 0, 0]),
          include_pi=True,
      )
      return qml.expval(qml.PauliZ(0))
  
imports: import numpy
  import pytest
  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