No module named 'utils.torch_utils'

Hello.I have pythorch 2.0.1+cu117.I tried to import select_device from utils.torch_utils by the command:
from utils.torch_utils import select_device .
I got the error: ModuleNotFoundError: No module named ‘utils.torch_utils’.

I tried to :

1.pip install python_utils
2.pip install utils
3.pip install torch-utils

4.pip install --upgrade torch torchvision torchaudio --index-url
5.pip install --upgrade torch
6.pip install --upgrade torch torchvision torchaudio
7.pip install --upgrade torch torchvision torchaudio --index-url

Now i have pytorch 2.1.2+cu118, but, unfortunatelly i still have the same problem.How can i fix that ?

Could you explain where the utils namespace is defined, please?

Hello.Sorry for the late reply.I tried to find where the utils namespace is defined and found out that the problem was associated with yolov5 and not with the pytorch.After that i could fix the problem.