code: def exist_pyspark():
      # check whether pyspark package exists
      try:
          import pyspark
  
          return True
      except ImportError:
          return False
  
file_path: BigDL/python/dllib/src/bigdl/dllib/utils/engine.py
imports: import sys
  import os
  import glob
  import warnings
  import logging
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 1 for calling a global function with example usage: exist_pyspark() and returns: True, False