class_docstr: 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_dim(self):
      """Verifies that exception is raised if the
      number of dimensions of features is incorrect."""
  
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(weights, ranges=None):
          qml.StronglyEntanglingLayers(
              weights, wires=range(2), ranges=ranges
          )
          return qml.expval(qml.PauliZ(0))
  
      with pytest.raises(
          ValueError, match="Weights tensor must have second dimension"
      ):
          weights = np.random.randn(2, 1, 3)
          circuit(weights)
  
      with pytest.raises(
          ValueError, match="Weights tensor must have third dimension"
      ):
          weights = np.random.randn(2, 2, 1)
          circuit(weights)
  
      with pytest.raises(
          ValueError, match="Range sequence must be of length"
      ):
          weights = np.random.randn(2, 2, 3)
          circuit(weights, ranges=[1])
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestInputs obj's underlying member method code with example usage: obj.test_exception_wrong_dim() and returns: qml