code: def is_deepspeed_available():
      return importlib.util.find_spec("deepspeed") is not None
  
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 1 for calling a global function with example usage: is_deepspeed_available() and returns: unknown