code: def load_library_handle(libname, path):
      
  
      if path is None or path in ['None', 'none']:
          # Either could not find a library via ctypes or
          # user-configuration-file, or we could not find it in any of the
          # default locations, or possibly the user intentionally does not want
          # one of the libraries to load.
          return None
  
      try:
          if os.name == "nt":
              opj_lib = ctypes.windll.LoadLibrary(path)
          else:
              opj_lib = ctypes.CDLL(path)
      except (TypeError, OSError):
          msg = 'The {libname} library at {path} could not be loaded.'
          msg = msg.format(path=path, libname=libname)
          warnings.warn(msg, UserWarning)
          opj_lib = None
  
      return opj_lib
docs: Load the library, return the ctypes handle.