code: def __init__(
      self, in_path="./", sampling_mode="link", type_constrain=True
  ):
      base_file = os.path.abspath(
          os.path.join(os.path.dirname(__file__), "../release/Base.so")
      )
      self.lib = ctypes.cdll.LoadLibrary(base_file)
      """for link prediction"""
      self.lib.getHeadBatch.argtypes = [
          ctypes.c_void_p,
          ctypes.c_void_p,
          ctypes.c_void_p,
      ]
      self.lib.getTailBatch.argtypes = [
          ctypes.c_void_p,
          ctypes.c_void_p,
          ctypes.c_void_p,
      ]
      """for triple classification"""
      self.lib.getTestBatch.argtypes = [
          ctypes.c_void_p,
          ctypes.c_void_p,
          ctypes.c_void_p,
          ctypes.c_void_p,
          ctypes.c_void_p,
          ctypes.c_void_p,
      ]
      """set essential parameters"""
      self.in_path = in_path
      self.sampling_mode = sampling_mode
      self.type_constrain = type_constrain
      self.read()
  
imports: import os
  import ctypes
  import numpy
label_desc: Use image node_id 1 to create a new TestDataLoader object from inherited base classes: object with example: obj = TestDataLoader(in_path, sampling_mode, type_constrain)