code: def get_tensor_model_parallel_src_rank():
      """Calculate the global rank corresponding to the first local rank
      in the tensor model parallel group."""
      global_rank = torch.distributed.get_rank()
      local_world_size = get_tensor_model_parallel_world_size()
      return (global_rank // local_world_size) * local_world_size
  
imports: import os
  from typing import Optional
  import torch
  from .utils import GlobalMemoryBuffer
label_desc: Use image node_id 39 for calling a global function with example usage: get_tensor_model_parallel_src_rank() and returns: unknown