code: def test_dataset():
      binary_example_dir = (
          Path(__file__).absolute().parents[2]
          / "examples"
          / "binary_classification"
      )
      train = load_from_file(binary_example_dir / "binary.train", None)
      test = load_from_mat(binary_example_dir / "binary.test", train)
      free_dataset(test)
      test = load_from_csr(binary_example_dir / "binary.test", train)
      free_dataset(test)
      test = load_from_csc(binary_example_dir / "binary.test", train)
      free_dataset(test)
      save_to_binary(train, "train.binary.bin")
      free_dataset(train)
      train = load_from_file("train.binary.bin", None)
      free_dataset(train)
  
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 8 for calling a global function with example usage: test_dataset() without return types