Torch.distributed.get_rank not found

On pytorch 1.0 , get_rank cannot be found. But in docs, it says it is there

Hi,

How did you installed pytorch?