code: def _load_images(self):
      images = self._parse()
      ct = 0
      records = []
      for image in images:
          assert image != "" and os.path.isfile(
              image
          ), "Image {} not found".format(image)
          if self.sample_num > 0 and ct >= self.sample_num:
              break
          rec = {"im_id": np.array([ct]), "im_file": image}
          self._imid2path[ct] = image
          ct += 1
          records.append(rec)
      assert len(records) > 0, "No image file found"
      return records
  
imports: import os
  import copy
  import numpy
  from paddle.io import Dataset
  from ppdet.core.workspace import register, serializable
  from ppdet.utils.download import get_dataset_path
  from ppdet.data import source
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 6 for calling the ImageFolder obj's underlying member method code with example usage: obj._load_images() and returns: records