so sorry,
this happened due to improper importing of libraries
we have to import fastai.vision for this
No worries, in future you can click the … on your original post and click the delete button. The post or thread gets flagged to be deleted later.