code: def rank() -> int:
      """Returns the rank of the current process."""
      return dist.get_rank() if dist.is_initialized() else 0
  
file_path: lightly/lightly/utils/dist.py
imports: from typing import Optional, Tuple
  import torch
  import torch.distributed
label_desc: Use image node_id 1 for calling a global function with example usage: rank() and returns: unknown