PredictionGroup.create_prediction_group()

Project Type: Object Classification
Operating System: Windows 10

from roboflow import Roboflow

rf = Roboflow(api_key="...........................")
project = rf.workspace().project("lego-brick-classifier")
model = project.version(1).model

# infer on a local image
print(model.predict("your_image.jpg").json())


I got the above code (from Roboflow) after the model is trained.  The error is:

cannot import name 'PredictionGroup' from 'roboflow' (C:\Users\abc\Anaconda3\envs\roboflow\lib\site-packages\roboflow\__init__.py)

I can't find anything about PredictionGroup which can give me an idea on how to fix the error.

The error started to happen from version 0.2.26 onwards till the latest 0.2.31.

There is a change in the API ?