Draw_bounding_boxes not available in torchvision.utils package

Is draw_bounding_boxes not available in torchvision.utils package? i am getting error while doing the import as
from torchvision.utils import draw_bounding_boxes

The error message:
ImportError Traceback (most recent call last)
/tmp/ipykernel_9914/1881906353.py in
----> 1 from torchvision.utils import draw_bounding_boxes

ImportError: cannot import name ‘draw_bounding_boxes’ from ‘torchvision.utils’ (/ocean/projects/asc170022p/shg121/anaconda3/envs/python_3_7/lib/python3.7/site-packages/torchvision/utils.py)

My torch versions:
import torch

print(torch.version) # 1.7.0
print(torch.version.cuda) # 10.2

You haven’t posted the torchvision version, so I guess it might be too old and you would have to update it.

torchvision version is 0.6

0.6 was released in April 2020, while draw_bounding_boxes was added in this PR in Nov. 2020 so update torchvision.