def METHOD_NAME(self, idx):
    image_info = self._get_image_info(idx)
    image_height = image_info["height"]
    image_width = image_info["width"]
    object_map = {}
    objects = []
    for obj in image_info["objects"]:
        obj["synsets"] = self.synset_processor({"tokens": obj["synsets"]})["text"]
        obj["names"] = self.name_processor({"tokens": obj["names"]})["text"]
        obj["height"] = obj["h"] / image_height
        obj.pop("h")
        obj["width"] = obj["w"] / image_width
        obj.pop("w")
        obj["y"] /= image_height
        obj["x"] /= image_width
        obj["attributes"] = self.attribute_processor({"tokens": obj["attributes"]})[
            "text"
        ]
        obj = Sample(obj)
        object_map[obj["object_id"]] = obj
        objects.append(obj)
    objects = SampleList(objects)
    return objects, object_map