class_docstr: Test inputs and pre-processing.
docstr: Checks exception if features has more than two dimensions.
docstr_tok: ["Checks","exception","if","features","has","more","than","two","dimensions","."]
code: def test_throws_exception_if_features_wrong_shape(self):
      """Checks exception if features has more than two dimensions."""
  
      n_qubits = 2
      dev = qml.device("default.qubit", wires=n_qubits)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.AmplitudeEmbedding(features=x, wires=range(n_qubits))
          return qml.expval(qml.PauliZ(0))
  
      with pytest.raises(
          ValueError,
          match="Features must be a one-dimensional (tensor|vector)",
      ):
          circuit(
              x=[[[1.0, 0.0], [0.0, 0.0]], [[1.0, 0.0], [0.0, 0.0]]]
          )
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestInputs obj's underlying member method code with example usage: obj.test_throws_exception_if_features_wrong_shape() and returns: qml