class_docstr: Test inputs and pre-processing.
docstr: Verifies that exception is raised if the shape of features is incorrect.
docstr_tok: ["Verifies","that","exception","is","raised","if","the","shape","of","features","is","incorrect","."]
code: def test_exception_wrong_feature_shape(self, shape):
      """Verifies that exception is raised if the shape of features is incorrect."""
      n_wires = 1
      weights = np.zeros(shape=(1, 1))
      features = np.zeros(shape=shape)
      dev = qml.device("default.qubit", wires=n_wires)
  
      @qml.qnode(dev)
      def circuit():
          qml.QAOAEmbedding(features, weights, wires=range(n_wires))
          return [qml.expval(qml.PauliZ(i)) for i in range(n_wires)]
  
      with pytest.raises(
          ValueError, match="Features must be a one-dimensional"
      ):
          circuit()
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestInputs obj's underlying member method code with example usage: obj.test_exception_wrong_feature_shape(shape) and returns: unknown