code: def qfunc_emb(x, params):
      qml.templates.AngleEmbedding(x, wires=range(3))
      qml.templates.BasicEntanglerLayers(params, wires=range(3))
      return qml.expval(qml.PauliZ(wires=2))
  
imports: from functools import partial
  import pytest
  from test_optimization.utils import compare_operation_lists
  import pennylane
  from pennylane import numpy
  from pennylane.wires import Wires
  from pennylane.transforms.compile import compile
  from pennylane.transforms import unitary_to_rot
  from pennylane.transforms.optimization import cancel_inverses, commute_controlled, merge_rotations, single_qubit_fusion
  from pennylane.transforms.optimization.optimization_utils import _fuse_global_phases
label_desc: Use image node_id 2 for calling a global function with example usage: qfunc_emb(x, params) and returns: qml