class_docstr: Tests that the template defines the correct decomposition.
docstr: Checks that custom local field is used.
docstr_tok: ["Checks","that","custom","local","field","is","used","."]
code: def test_local_field(self, local_field):
      """Checks that custom local field is used."""
  
      get_name = {"X": "RX", "Y": "RY", "Z": "RZ"}
  
      features = list(range(2))
      weights = np.zeros(shape=(1, 3))
  
      op = qml.QAOAEmbedding(
          features, weights, wires=range(2), local_field=local_field
      )
      tape = op.expand()
      gate_names = [gate.name for gate in tape.operations]
  
      assert gate_names[3] == get_name[local_field]
      assert gate_names[4] == get_name[local_field]
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_local_field(local_field) without return types