code: def restart_ordering(on_ambiguity=ambiguity_warn):
      _resolve[0] = True
      while _unresolved_dispatchers:
          dispatcher = _unresolved_dispatchers.pop()
          dispatcher.reorder(on_ambiguity=on_ambiguity)
  
imports: from __future__ import annotations
  from warnings import warn
  import inspect
  from .conflict import ordering, ambiguities, super_signature, AmbiguityWarning
  from .utils import expand_tuples
  import itertools
label_desc: Use image node_id 4 for calling a global function with example usage: restart_ordering(on_ambiguity) without return types