class_docstr: COCO2014 Caption dataset.
docstr: Load data list.
code: def load_data_list(self) -> List[dict]:
      """Load data list."""
      img_prefix = self.data_prefix["img_path"]
      annotations = mmengine.load(self.ann_file)
      file_backend = get_file_backend(img_prefix)
  
      data_list = []
      for ann in annotations:
          data_info = {
              "img_id": Path(ann["image"]).stem.split("_")[-1],
              "img_path": file_backend.join_path(
                  img_prefix, ann["image"]
              ),
              "gt_caption": ann["caption"],
          }
  
          data_list.append(data_info)
  
      return data_list
  
file_path: mmdetection/mmdet/datasets/coco_caption.py
imports: from pathlib import Path
  from typing import List
  import mmengine
  from mmengine.dataset import BaseDataset
  from mmengine.fileio import get_file_backend
  from mmdet.registry import DATASETS
label_desc: Use image node_id 1 for calling the CocoCaptionDataset obj's underlying member method code with example usage: obj.load_data_list() and returns: data_list