class_docstr: SniperCOCODataSet
class_docstr_tok: ["SniperCOCODataSet"]
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
          im = cv2.imread(image)
          h, w, c = im.shape
          rec = {
              "im_id": np.array([ct]),
              "im_file": image,
              "h": h,
              "w": w,
          }
          self._imid2path[ct] = image
          ct += 1
          records.append(rec)
      assert len(records) > 0, "No image file found"
      return records
  
imports: import os
  import cv2
  import json
  import copy
  import numpy
  from ppdet.core.workspace import register, serializable
  from ppdet.data.crop_utils.annotation_cropper import AnnoCropper
  from .coco import COCODataSet
  from .dataset import _make_dataset, _is_valid_file
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 13 for calling the SniperCOCODataSet obj's underlying member method code with example usage: obj._load_images() and returns: records