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)
interp = SegmentationInterpretation.from_learner(learn)

but strangely I get this error


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