code: def record_from_list(func):
      """
      Decorates a function to
      - not record any operators instantiated during the function
      - record the operators returned by the function, in order
      - not return the return value
  
      Not returning the return value is intentional, as the contexts where this is used
      (qnode, matrix) only care about recorded operators and not the return value.
      """
  
      def irecord_from_list(*args, **kwargs):
          with qml.QueuingManager.stop_recording():
              decomposition = func(*args, **kwargs)
  
          if qml.QueuingManager.recording():
              for iop in decomposition:
                  qml.apply(iop)
  
      return irecord_from_list
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.ops import ctrl_decomp_zyz
  from pennylane.wires import Wires
  from pennylane.ops.op_math.controlled_decompositions import _ctrl_decomp_bisect_od, _ctrl_decomp_bisect_md, _ctrl_decomp_bisect_general, ctrl_decomp_bisect, _convert_to_su2, _bisect_compute_a, _bisect_compute_b
  from pennylane.ops.op_math.controlled import Controlled
  from pennylane import math
label_desc: Use image node_id 2 for calling a global function with example usage: record_from_list(func) and returns: irecord_from_list