Hi,
I am getting an error while importing torch, things used to work fine.
PyTorch was installed using conda:
Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 09:07:38) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dd/anaconda2/envs/dd/lib/python3.6/site-packages/torch/__init__.py", line 181, in <module>
    from .serialization import save, load
  File "/home/dd/anaconda2/envs/dd/lib/python3.6/site-packages/torch/serialization.py", line 11, in <module>
    import tempfile
  File "/home/dd/anaconda2/envs/dd/lib/python3.6/tempfile.py", line 45, in <module>
    from random import Random as _Random
  File "/home/dd/text_sum/AlexNet/video_/examples/random.py", line 5, in <module>
    from torch.utils import data
  File "/home/dd/anaconda2/envs/dd/lib/python3.6/site-packages/torch/utils/data/__init__.py", line 3, in <module>
    from .dataset import Dataset, IterableDataset, TensorDataset, ConcatDataset, ChainDataset, Subset, random_split  # noqa: F401
  File "/home/dd/anaconda2/envs/dd/lib/python3.6/site-packages/torch/utils/data/dataset.py", line 5, in <module>
    from torch import randperm
ImportError: cannot import name 'randperm'

How to fix this issue?