class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Tests that the correct error messages is raised  if
  the number of entries in the given state vector does not match
  with the number of wires in the system.
docstr_tok: ["Tests","that","the","correct","error","messages","is","raised","if","the","number","of","entries","in","the","given","state","vector","does","not","match","with","the","number","of","wires","in","the","system","."]
code: def test_error_num_entries(self, state_vector, wires):
      """Tests that the correct error messages is raised  if
      the number of entries in the given state vector does not match
      with the number of wires in the system."""
  
      with pytest.raises(
          ValueError, match="State vectors must be of (length|shape)"
      ):
          qml.MottonenStatePreparation(state_vector, wires)
  
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 2 for calling the TestInputs obj's underlying member method code with example usage: obj.test_error_num_entries(state_vector, wires) without return types