def METHOD_NAME(self) -> List[dict]:
    """Load data info from an dsdl yaml file named as ``self.ann_file``
    Returns:
        List[dict]: A list of data info.
    """
    if self.with_hierarchy:
        # get classes_names and relation_matrix
        classes_names, relation_matrix = \
            self.dsdldataset.class_dom.get_hierarchy_info()
        self._metainfo['classes'] = tuple(classes_names)
        self._metainfo['RELATION_MATRIX'] = relation_matrix
    else:
        self._metainfo['classes'] = tuple(self.dsdldataset.class_names)
    data_list = []
    for i, data in enumerate(self.dsdldataset):
        # basic image info, including image id, path and size.
        datainfo = dict(
            img_id=i,
            img_path=os.path.join(self.data_prefix['img_path'],
                                  data['Image'][0].location),
            width=data['ImageShape'][0].width,
            height=data['ImageShape'][0].height,
        )
        # get image label info
        if 'image_level_labels' in data.keys():
            if self.with_hierarchy:
                # get leaf node name when using hierarchy classes
                datainfo['image_level_labels'] = [
                    self._metainfo['classes'].index(i.leaf_node_name)
                    for i in data['image_level_labels']
                ]
            else:
                datainfo['image_level_labels'] = [
                    self._metainfo['classes'].index(i.name)
                    for i in data['image_level_labels']
                ]
        # get semantic segmentation info
        if 'LabelMap' in data.keys():
            datainfo['seg_map_path'] = data['LabelMap']
        # load instance info
        instances = []
        if 'Bbox' in data.keys():
            for idx in range(len(data['Bbox'])):
                bbox = data['Bbox'][idx]
                if self.with_hierarchy:
                    # get leaf node name when using hierarchy classes
                    label = data['Label'][idx].leaf_node_name
                    label_index = self._metainfo['classes'].index(label)
                else:
                    label = data['Label'][idx].name
                    label_index = self._metainfo['classes'].index(label)
                instance = {}
                instance['bbox'] = bbox.xyxy
                instance['bbox_label'] = label_index
                if 'ignore_flag' in data.keys():
                    # get ignore flag
                    instance['ignore_flag'] = data['ignore_flag'][idx]
                else:
                    instance['ignore_flag'] = 0
                if 'Polygon' in data.keys():
                    # get polygon info
                    polygon = data['Polygon'][idx]
                    instance['mask'] = polygon.openmmlabformat
                for key in self.extra_keys:
                    # load extra instance info
                    instance[key] = data[key][idx]
                instances.append(instance)
        datainfo['instances'] = instances
        # append a standard sample in data list
        if len(datainfo['instances']) > 0:
            data_list.append(datainfo)
    return data_list