code: def is_deepspeed_available():
      package_exists = importlib.util.find_spec("deepspeed") is not None
  
      # Check we're not importing a "deepspeed" directory somewhere but the actual library by trying to grab the version
      # AND checking it has an author field in the metadata that is HuggingFace.
      if package_exists:
          try:
              _ = importlib_metadata.metadata("deepspeed")
              return True
          except importlib_metadata.PackageNotFoundError:
              return False
  
imports: import importlib.metadata
  import importlib.util
  import weakref
  from functools import partialmethod
  from ..dependency_versions_check import dep_version_check
  from ..utils import is_accelerate_available, is_torch_available, logging
label_desc: Use image node_id 1 for calling a global function with example usage: is_deepspeed_available() and returns: True, False