class_docstr: Test inputs and pre-processing.
docstr: Verifies that exception is raised if the shape of weights is incorrect.
docstr_tok: ["Verifies","that","exception","is","raised","if","the","shape","of","weights","is","incorrect","."]
code: def test_exception_wrong_weight_shape(self, weights, n_wires):
      """Verifies that exception is raised if the shape of weights is incorrect."""
      features = np.zeros(shape=(n_wires,))
      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(0))
  
      with pytest.raises(
          ValueError, match="Weights tensor must be of shape"
      ):
          circuit()
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the TestInputs obj's underlying member method code with example usage: obj.test_exception_wrong_weight_shape(weights, n_wires) and returns: qml