code: def load_from_file(filename, reference):
      ref = None
      if reference is not None:
          ref = reference
      handle = ctypes.c_void_p()
      LIB.LGBM_DatasetCreateFromFile(
          c_str(str(filename)),
          c_str("max_bin=15"),
          ref,
          ctypes.byref(handle),
      )
      print(LIB.LGBM_GetLastError())
      num_data = ctypes.c_int(0)
      LIB.LGBM_DatasetGetNumData(handle, ctypes.byref(num_data))
      num_feature = ctypes.c_int(0)
      LIB.LGBM_DatasetGetNumFeature(handle, ctypes.byref(num_feature))
      print(f"#data: {num_data.value} #feature: {num_feature.value}")
      return handle
  
file_path: LightGBM/tests/c_api_test/test_.py
imports: import ctypes
  from pathlib import Path
  from platform import system
  import numpy
  from scipy import sparse
label_desc: Use image node_id 2 for calling a global function with example usage: load_from_file(filename, reference) and returns: handle