code: def test_no_measure():
      """Test that failing to specify a measurement
      raises an exception"""
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(x):
          qml.RX(x, wires=0)
          return qml.PauliY(0)
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="must return either a single measurement",
      ):
          _ = circuit(0.65)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import ClassicalShadowMP, Counts, CountsMP, Expectation, ExpectationMP, MeasurementProcess, MeasurementTransform, MeasurementValue, MidMeasure, MidMeasureMP, MutualInfoMP, PurityMP, Probability, ProbabilityMP, Sample, SampleMeasurement, SampleMP, ShadowExpvalMP, Shots, State, StateMeasurement, StateMP, Variance, VarianceMP, VnEntropyMP, expval, sample, var
  from pennylane.operation import DecompositionUndefinedError
  from pennylane.queuing import AnnotatedQueue
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling a global function with example usage: test_no_measure() and returns: qml