Thank you. This is the entire code. Do you think I should downgrade or upgrade any package:
This is the list of packages installed in my environment:

argon2-cffi
async-generator
attrs
backcall
bleach
certifi==2021.5.30
cffi
colorama
debugpy==1.3.0
decorator
defusedxml
entrypoints==0.3
importlib-metadata
ipykernel==6.0.0
ipython==7.25.0
ipython-genutils
ipywidgets
jedi==0.18.0
Jinja2
joblib==1.0.1
jsonschema
jupyter
jupyter-client
jupyter-console
jupyter-core
jupyterlab-pygments
jupyterlab-widgets
MarkupSafe
matplotlib-inline==0.1.2
mistune
nbclient
nbconvert
nbformat
nest-asyncio
notebook
numpy==1.21.0
packaging
pandas==1.2.5
pandocfilters
parso==0.8.2
pickleshare
Pillow==8.3.0
prometheus-client
prompt-toolkit==3.0.19
pycparser
Pygments
pyparsing
pyrsistent
python-dateutil
pytz==2021.1
pywin32==301
pywinpty==1.1.3
pyzmq==22.1.0
qtconsole==5.1.1
QtPy==1.9.0
scikit-learn==0.24.2
scipy==1.7.0
Send2Trash==1.7.1
sip==4.19.13
six
sklearn==0.0
terminado==0.10.1
testpath
threadpoolctl==2.1.0
torch==1.9.0
torchaudio==0.9.0
torchvision==0.10.0
tornado
traitlets
typing-extensions==3.10.0.0
wcwidth
webencodings==0.5.1
widgetsnbextension
wincertstore==0.2
zipp