code: def sampling_lp(self):
      res = []
      self.lib.getHeadBatch(
          self.test_h_addr, self.test_t_addr, self.test_r_addr
      )
      res.append(
          {
              "batch_h": self.test_h.copy(),
              "batch_t": self.test_t[:1].copy(),
              "batch_r": self.test_r[:1].copy(),
              "mode": "head_batch",
          }
      )
      self.lib.getTailBatch(
          self.test_h_addr, self.test_t_addr, self.test_r_addr
      )
      res.append(
          {
              "batch_h": self.test_h[:1],
              "batch_t": self.test_t,
              "batch_r": self.test_r[:1],
              "mode": "tail_batch",
          }
      )
      return res
  
imports: import os
  import ctypes
  import numpy
label_desc: Use image node_id 3 for calling the TestDataLoader obj's underlying member method code with example usage: obj.sampling_lp() and returns: res