code: def is_deepspeed_available():
      spec = importlib.util.find_spec("deepspeed")
      if spec is not None:
          deepspeed_path = spec.submodule_search_locations[0]
          if deepspeed_path != os.path.join(os.getcwd(), "deepspeed"):
              return True
          else:
              # not deepspeed package, just local dir
              return False
      else:
          return False
  
imports: import platform
  import torch
  import torch.nn
  from accelerate import init_empty_weights
  import warnings
  import transformers
  import importlib.util
  from bigdl.llm.ggml.quantize import ggml_tensor_qtype
  from .utils import logger
  from typing import Union
  import numpy
  import os
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 3 for calling a global function with example usage: is_deepspeed_available() and returns: False, True, False