code: def is_deepspeed_zero3_enabled():
      if (
          _hf_deepspeed_config_weak_ref is not None
          and _hf_deepspeed_config_weak_ref() is not None
      ):
          return _hf_deepspeed_config_weak_ref().is_zero3()
      else:
          return False
  
imports: import importlib.util
  import io
  import json
  import weakref
  from copy import deepcopy
  from functools import partialmethod
  from .utils.versions import require_version
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
  from fastNLP.core.log import logger
label_desc: Use image node_id 3 for calling a global function with example usage: is_deepspeed_zero3_enabled() and returns: _hf_deepspeed_config_weak_ref, False