code: def check_spark_source_conflict(spark_home, pyspark_path):
      # Check if both $SPARK_HOME and pyspark package exist.
      # Trigger a warning if two spark sources don't match.
      if spark_home and not pyspark_path.startswith(spark_home):
          warning_msg = (
              "Find both SPARK_HOME and pyspark. You may need to check whether they "
              + "match with each other. SPARK_HOME environment variable "
              + "is set to: "
              + spark_home
              + ", and pyspark is found in: "
              + pyspark_path
              + ". If they are unmatched, "
              + "you are recommended to use one source only to avoid conflict. "
              + "For example, you can unset SPARK_HOME and use pyspark only."
          )
          warnings.warn(warning_msg)
  
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 2 for calling a global function with example usage: check_spark_source_conflict(spark_home, pyspark_path) without return types