parameters: ()
return_statement: return lib
docstring: Load library by searching possible path.
docstring_summary: Load library by searching possible path.
docstring_tokens: Load library by searching possible path .
function: def _load_lib():
      """Load library by searching possible path."""
      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
function_tokens: 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