class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Verifies that an exception is raised if 'features' has the wrong number of dimensions.
docstr_tok: ["Verifies","that","an","exception","is","raised","if","'features","'","has","the","wrong","number","of","dimensions","."]
code: def test_exception_wrong_ndim(self, shape):
      """Verifies that an exception is raised if 'features' has the wrong number of dimensions."""
  
      dev = qml.device("default.qubit", wires=3)
  
      @qml.qnode(dev)
      def circuit(f=None):
          qml.IQPEmbedding(features=f, wires=range(3))
          return [qml.expval(qml.PauliZ(w)) for w in range(3)]
  
      features = np.ones(shape)
  
      with pytest.raises(
          ValueError, match="Features must be a one-dimensional"
      ):
          circuit(f=features)
  
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_exception_wrong_ndim(shape) and returns: unknown