code: def is_spark_below_ver(ver):
      """
      Check if spark version is below ver. Always returns True if spark version is below 2.1.0.
      """
      import pyspark
  
      if hasattr(pyspark, "version"):
          return compare_version(pyspark.version.__version__, ver) < 0
      return True
  
file_path: analytics-zoo/pyzoo/zoo/util/engine.py
imports: import sys
  import os
  import glob
  import warnings
  import logging
label_desc: Use image node_id 7 for calling a global function with example usage: is_spark_below_ver(ver) and returns: True, unknown