You have installed an outdated version of arcgis, use the following command to update
conda install -c esri arcgis=1.7.1 --no-pin
your torchvision package is from pytorch channel you need to change it to arcgis channel
conda remove pytorch torchvision --force --no-pin
conda install -c esri pytorch torchvision --no-pin
also try to import torch and check if it works
in your notebook execute this command in a cell
import torch