code: def load_library():
      """Loads the MagickWand library.
  
      :returns: the MagickWand library and the ImageMagick library
      :rtype: :class:`ctypes.CDLL`
  
      """
      tried_paths = []
      for libwand_path, libmagick_path in library_paths():
          if libwand_path is None or libmagick_path is None:
              continue
          try:
              tried_paths.append(libwand_path)
              libwand = ctypes.CDLL(str(libwand_path))
              if libwand_path == libmagick_path:
                  libmagick = libwand
              else:
                  tried_paths.append(libmagick_path)
                  libmagick = ctypes.CDLL(str(libmagick_path))
          except (IOError, OSError):
              continue
          return libwand, libmagick
      raise IOError(
          "cannot find library; tried paths: " + repr(tried_paths)
      )
  
file_path: wand/wand/api.py
imports: import ctypes
  import ctypes.util
  import itertools
  import os
  import os.path
  import platform
  import sys
  import traceback
  from .cdefs.structures import AffineMatrix, MagickPixelPacket, PixelInfo, PointInfo
label_desc: Use image node_id 2 for calling a global function with example usage: load_library() and returns: libwand,  libmagick