Yes, now I see the problem is in running the code from the editor to the output screen. When I run it from the editor to the terminal it works.
So I click at the top right button “Run Python file in Terminal” and it works, but when I click “Run code” so I have it on the output screen it shows the message “No module named torch”.