Python API
local_rank()
Returns the local rank of the current process.
The local rank of the current process if available, otherwise None.
int