Segmentation Interpretation TensorBase.__format__ error

I am following the vision tutorial for beginners, learning about segmentation.
I followed exactly what they wrote

def label_func(fn): path/"labels"/f"{fn.stem}_P{fn.suffix}"
dls = SegmentationDataLoaders.from_label_func(
    path, bs=8, fnames = fnames, label_func = label_func, codes = codes
)
learn = unet_learner(dls,resnet34)
learn.fine_tune(6)
interp = SegmentationInterpretation.from_learner(learn)
interp.plot_top_losses(k=10)

but strangely I get this error

image

kindly help me with this one.
if you want to see the error, here is my kaggle notebook, kindly it check out .