def METHOD_NAME(json_data: Dict[str, Any],
                          image_root: Path) -> LabelGenerator:
    """
    Convert coco object data into the labelbox format (as a LabelGenerator).
    Args:
        json_data: coco object data as a dict
        image_root: Path to local images that are referenced by the coco object json
    Returns:
        LabelGenerator
    """
    image_root = validate_path(image_root, 'image_root')
    objs = CocoInstanceDataset(**json_data)
    gen = objs.to_common(image_root)
    return LabelGenerator(data=gen)