code: def compute_model_parallel_rank(local_rank, model_parallel_size):
      return local_rank % model_parallel_size
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron/megatron_utils.py
imports: import os
  import shutil
  from typing import Dict, List
  import torch
  import wget
  from torch.hub import _get_torch_home
  from nemo.utils import logging
label_desc: Use image node_id 1 for calling a global function with example usage: compute_model_parallel_rank(local_rank, model_parallel_size) and returns: unknown