class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Verifies that exception is raised if the
  number of dimensions of features is incorrect.
docstr_tok: ["Verifies","that","exception","is","raised","if","the","number","of","dimensions","of","features","is","incorrect","."]
code: def test_exception_wrong_shape(self, state_vector):
      """Verifies that exception is raised if the
      number of dimensions of features is incorrect."""
  
      with pytest.raises(
          ValueError, match="State vectors must be one-dimensional"
      ):
          qml.MottonenStatePreparation(state_vector, 2)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.templates.state_preparations.mottonen import gray_code, _get_alpha_y
label_desc: Use image node_id 3 for calling the TestInputs obj's underlying member method code with example usage: obj.test_exception_wrong_shape(state_vector) without return types