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