code: def test_binary():
      fd = FileLoader(EXAMPLES_DIR / "binary_classification", "binary")
      X_train, y_train, _ = fd.load_dataset(".train")
      X_test, _, X_test_fn = fd.load_dataset(".test")
      weight_train = fd.load_field(".train.weight")
      lgb_train = lgb.Dataset(
          X_train, y_train, params=fd.params, weight=weight_train
      )
      gbm = lgb.LGBMClassifier(**fd.params)
      gbm.fit(X_train, y_train, sample_weight=weight_train)
      sk_pred = gbm.predict_proba(X_test)[:, 1]
      fd.train_predict_check(lgb_train, X_test, X_test_fn, sk_pred)
      fd.file_load_check(lgb_train, ".train")
  
file_path: LightGBM/tests/python_package_test/test_consistency.py
imports: from pathlib import Path
  import numpy
  from sklearn.datasets import load_svmlight_file
  import lightgbm
label_desc: Use image node_id 1 for calling a global function with example usage: test_binary() without return types