code: def shutdown():
      global allocation_map
      for addr in list(allocation_map):
          try:
              deallocator = allocation_map.pop(addr)
              if callable(deallocator):
                  deallocator(addr)
          except KeyError:
              pass
      terminus()
  
imports: import atexit
  import contextlib
  import ctypes
  import warnings
  from .api import library
  from .compat import abc, string_type
  from .exceptions import TYPE_MAP, WandException
  from .version import MAGICK_VERSION_NUMBER
label_desc: Use image node_id 5 for calling a global function with example usage: shutdown() without return types