code: def is_in_paddle_dist() -> bool:
      """
      判断是否处于 **paddle** 分布式的进程下，使用 ``PADDLE_RANK_IN_NODE`` 和 ``FLAGS_selected_gpus`` 判断。
      """
      return (
          "PADDLE_RANK_IN_NODE" in os.environ
          and "FLAGS_selected_gpus" in os.environ
      )
  
file_path: fastNLP/fastNLP/core/utils/paddle_utils.py
imports: import os
  import re
  from typing import Any, Optional, Union
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
  from fastNLP.envs import FASTNLP_DISTRIBUTED_CHECK, FASTNLP_BACKEND_LAUNCH, USER_CUDA_VISIBLE_DEVICES
  from .utils import apply_to_collection
label_desc: Use image node_id 6 for calling a global function with example usage: is_in_paddle_dist() and returns: unknown