def _parse_shapes(shapes, label_id):
    for shape in shapes:
        for attr in shape['attributes']:
            if (attr['value'] == label_id):
                return shape
def _parse_shapes(shapes, label_id):
    for shape in shapes:
        for attr in shape['attributes']:
            if (attr['value'] == label_id):
                return shape