def METHOD_NAME(self, index):
    img_id = self.ids[index]
    anno = ET.parse(self._annopath % img_id).getroot()
    size = anno.find("size")
    im_info = tuple(map(int, (size.find("height").text, size.find("width").text)))
    return {"height": im_info[0], "width": im_info[1]}