code: def deallocate_ref(addr):
      global allocation_map
      if addr in list(allocation_map):
          deallocator = allocation_map.pop(addr)
          if callable(deallocator):
              deallocator(addr)
  
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 4 for calling a global function with example usage: deallocate_ref(addr) without return types