code: def load_with_version(libmagick, IM_VERSION):
      if IM_VERSION < 0x700:
          libmagick.AcquireKernelBuiltIn.argtypes = [c_int, c_void_p]
          libmagick.AcquireKernelBuiltIn.restype = c_void_p
          libmagick.AcquireKernelInfo.argtypes = [c_char_p]
          libmagick.AcquireKernelInfo.restype = c_void_p
      else:
          libmagick.AcquireKernelBuiltIn.argtypes = [
              c_int,
              c_void_p,
              c_void_p,
          ]
          libmagick.AcquireKernelBuiltIn.restype = c_void_p
          libmagick.AcquireKernelInfo.argtypes = [c_char_p, c_void_p]
          libmagick.AcquireKernelInfo.restype = c_void_p
      libmagick.DestroyKernelInfo.argtypes = [c_void_p]
      libmagick.DestroyKernelInfo.restype = c_void_p
  
imports: from ctypes import POINTER, c_bool, c_char_p, c_int, c_size_t, c_ulonglong, c_void_p
  from wand.cdefs.wandtypes import c_ssize_t
label_desc: Use image node_id 2 for calling a global function with example usage: load_with_version(libmagick, IM_VERSION) without return types