code: def circuit_template(features, pad_with=None, normalize=False):
      """AmplitudeEmbedding circuit. For three wires, all test features match
      the expected length. For four wires, we get a test case for `pad_with`.
      """
      num_wires = 3 if pad_with is None else 4
      qml.AmplitudeEmbedding(
          features,
          wires=range(num_wires),
          pad_with=pad_with,
          normalize=normalize,
      )
      return qml.state()
  
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(features, pad_with, normalize) and returns: qml