code: def _load_lib():
      
      lib_path = libinfo.find_lib_path()
      lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
      # DMatrix functions
      lib.MXGetLastError.restype = ctypes.c_char_p
      return lib
docs: Load library by searching possible path.