code: def get_global_rank() -> int:
      """
      获取当前进程的 global_rank 。
  
      :return:
      """
      return int(os.environ.get(FASTNLP_GLOBAL_RANK, 0))
  
file_path: fastNLP/fastNLP/envs/distributed.py
imports: import os
  from functools import wraps
  from pathlib import Path
  from typing import Callable, Any, Optional, Union
  from contextlib import contextmanager
  from fastNLP.envs.env import FASTNLP_GLOBAL_RANK, FASTNLP_NO_SYNC
label_desc: Use image node_id 2 for calling a global function with example usage: get_global_rank() and returns: int