code: def test_not_implemented_error():
      f = Dispatcher("f")
  
      @f.register(float)
      def _(a):
          raise MDNotImplementedError()
  
      assert raises(NotImplementedError, lambda: f(1.0))
  
imports: from sympy.multipledispatch.dispatcher import Dispatcher, MDNotImplementedError, MethodDispatcher, halt_ordering, restart_ordering, ambiguity_register_error_ignore_dup
  from sympy.testing.pytest import raises, warns
label_desc: Use image node_id 19 for calling a global function with example usage: test_not_implemented_error() without return types