Solved by mrshenli in post #13 
              
              
                Thanks for reporting, it’s an error in the doc, I think it needs to be: 
rpc.ProcessGroupRpcBackendOptions(
    num_send_recv_threads=16,
    rpc_timeout=datetime.timedelta(seconds=1000)
)

Let me try.