def METHOD_NAME():
    import requests
    response = requests.get(
        "https://starwhale-examples.oss-cn-beijing.aliyuncs.com/dataset/coco/extracted/annotations/panoptic_val2017.json"
    )
    index = json.loads(response.text)
    img_dict = {img["id"]: img for img in index["images"]}
    for data in index["annotations"]:
        img_meta = img_dict[data["image_id"]]
        img_name = img_meta["file_name"]
        img_shape = (img_meta["height"], img_meta["width"])
        msk_f_name = data["file_name"]
        for sg in data["segments_info"]:
            x, y, w, h = sg["bbox"]
            sg["bbox_view"] = BoundingBox(x=x, y=y, width=w, height=h)
        data["mask"] = Image(
            display_name=msk_f_name,
            shape=img_shape,
            mime_type=MIMEType.PNG,
            as_mask=True,
            link=Link(
                uri=f"https://starwhale-examples.oss-cn-beijing.aliyuncs.com/dataset/coco/extracted/annotations/panoptic_val2017/{msk_f_name}",
            ),
        )
        data["image"] = Image(
            display_name=img_name,
            shape=img_shape,
            link=Link(
                uri=f"https://starwhale-examples.oss-cn-beijing.aliyuncs.com/dataset/coco/extracted/val2017/{img_name}",
            ),
        )
        yield data