code: def file_load_check(self, lgb_train, name):
      lgb_train_f = lgb.Dataset(
          self.path(name), params=self.params
      ).construct()
      for f in (
          "num_data",
          "num_feature",
          "get_label",
          "get_weight",
          "get_init_score",
          "get_group",
      ):
          a = getattr(lgb_train, f)()
          b = getattr(lgb_train_f, f)()
          if a is None and b is None:
              pass
          elif a is None:
              assert np.all(b == 1), f
          elif isinstance(b, (list, np.ndarray)):
              np.testing.assert_allclose(a, b)
          else:
              assert a == b, f
  
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 6 for calling the FileLoader obj's underlying member method code with example usage: obj.file_load_check(lgb_train, name) without return types