code: def _check_spark_version(sc, report_warn):
      version_info = _get_bigdl_verion_conf()
      (c_major, c_feature, c_maintenance) = _split_full_version(
          version_info["spark_version"]
      )
      (r_major, r_feature, r_maintenance) = _split_full_version(
          sc.version
      )
      error_message = """
          The compile time spark version is not compatible with the spark runtime version.
          Compile time version is %s, runtime version is %s. If you want bypass this check,
          please set spark.analytics.zoo.versionCheck to false, and if you want to only report
          an warning message, please set spark.analytics.zoo.versionCheck.warning to true.
          """ % (
          version_info["spark_version"],
          sc.version,
      )
      if c_major != r_major:
          if not report_warn:
              invalidInputError(False, error_message)
          else:
              warnings.warn(error_message)
      elif not (
          c_maintenance == r_maintenance and c_feature == r_feature
      ):
          warnings.warn(
              "The compile time spark version may not compatible with "
              + "the Spark runtime version. "
              + "Compile time version is %s, "
              % version_info["spark_version"]
              + "runtime version is %s" % sc.version
          )
  
imports: from bigdl.dllib.utils.common import *
  from bigdl.dllib.utils.file_utils import callZooFunc
  from bigdl.dllib.utils.utils import set_python_home
  from bigdl.dllib.utils.log4Error import *
  import warnings
  import multiprocessing
  import os
  import threading
  import sys
label_desc: Use image node_id 17 for calling a global function with example usage: _check_spark_version(sc, report_warn) without return types