code: def package_exists(package_name: str) -> bool:
      try:
          importlib.import_module(package_name)
          return True
      except ImportError:
          return False
  
imports: import importlib
  import os
  from typing import Union
  from ..service.response import SyftError
  from ..service.response import SyftSuccess
  from ..util.util import str_to_bool
label_desc: Use image node_id 1 for calling a global function with example usage: package_exists(package_name) and returns: True, False