docstr: 判断是否为 ddp 状态
  
  :return:
docstr_tok: ["\u5224\u65ad\u662f\u5426\u4e3a","ddp","\u72b6\u6001",":","return",":"]
code: def is_distributed() -> bool:
      """
      判断是否为 ddp 状态
  
      :return:
      """
      return is_in_paddle_dist()
  
file_path: fastNLP/fastNLP/core/metrics/backend/paddle_backend/backend.py
imports: import os
  from typing import List, Any
  import numpy
  from fastNLP.core.metrics.backend import Backend
  from fastNLP.core.utils.paddle_utils import paddle_to, _convert_data_device, is_in_paddle_dist
  from fastNLP.core.metrics.utils import AggregateMethodError
  from fastNLP.core.drivers.paddle_driver.dist_utils import fastnlp_paddle_all_gather
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
label_desc: Use image node_id 7 for calling the PaddleBackend obj's underlying member method code with example usage: obj.is_distributed() and returns: is_in_paddle_dist