code: def test_numeric_type_unrecognized_error():
      """Test that querying the numeric type of a measurement process with an
      unrecognized return type raises an error."""
  
      mp = NotValidMeasurement()
      with pytest.raises(
          qml.QuantumFunctionError,
          match="The numeric type of the measurement NotValidMeasurement is not defined",
      ):
          _ = mp.numeric_type
  
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 3 for calling a global function with example usage: test_numeric_type_unrecognized_error() without return types