code: def require_test_compiled() -> None:
      """Raise Exception if test classes are not compiled"""
      import os
      import glob
  
      test_class_path = os.path.join(
          _find_spark_home(),
          "sql",
          "core",
          "target",
          "*",
          "test-classes",
      )
      paths = glob.glob(test_class_path)
  
      if len(paths) == 0:
          raise PySparkRuntimeError(
              error_class="TEST_CLASS_NOT_COMPILED",
              message_parameters={"test_class_path": test_class_path},
          )
  
imports: import inspect
  import functools
  import os
  from typing import Any, Callable, Optional, Sequence, TYPE_CHECKING, cast, TypeVar, Union, Type
  from py4j.java_collections import JavaArray
  from py4j.java_gateway import JavaClass, JavaGateway, JavaObject
  from pyspark import SparkContext
  from pyspark.errors import AnalysisException, ParseException, IllegalArgumentException, StreamingQueryException, QueryExecutionException, PythonException, UnknownException, SparkUpgradeException, PySparkNotImplementedError, PySparkRuntimeError
  from pyspark.errors.exceptions.captured import CapturedException
  from pyspark.find_spark_home import _find_spark_home
label_desc: Use image node_id 2 for calling a global function with example usage: require_test_compiled() without return types