parameters: ()
return_statement: return lib
docstring: Load LightGBM Library.
docstring_summary: Load LightGBM Library.
docstring_tokens: Load LightGBM Library .
function: def _load_lib():
      """Load LightGBM Library."""
      lib_path = find_lib_path()
      if len(lib_path) == 0:
          return None
      lib = ctypes.cdll.LoadLibrary(lib_path[0])
      lib.LGBM_GetLastError.restype = ctypes.c_char_p
      return lib
function_tokens: def _load_lib ( ) : lib_path = find_lib_path ( ) if len ( lib_path ) == 0 : return None lib = ctypes . cdll . LoadLibrary ( lib_path [ 0 ] ) lib . LGBM_GetLastError . restype = ctypes . c_char_p return lib