class_docstr: Test inputs and pre-processing.
docstr: Verifies that exception is raised if the
  value of ranges is incorrect.
docstr_tok: ["Verifies","that","exception","is","raised","if","the","value","of","ranges","is","incorrect","."]
code: def test_exception_wrong_ranges(self):
      """Verifies that exception is raised if the
      value of ranges 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="Ranges must not be zero nor"
      ):
          weights = np.random.randn(1, 2, 3)
          circuit(weights, ranges=[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_exception_wrong_ranges() and returns: qml