code: def _test() -> None:
      import doctest
      import pyspark.ml.image
  
      globs = pyspark.ml.image.__dict__.copy()
      spark = (
          SparkSession.builder.master("local[2]")
          .appName("ml.image tests")
          .getOrCreate()
      )
      globs["spark"] = spark
  
      (failure_count, test_count) = doctest.testmod(
          pyspark.ml.image,
          globs=globs,
          optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE,
      )
      spark.stop()
      if failure_count:
          sys.exit(-1)
  
file_path: spark/python/pyspark/ml/image.py
imports: import sys
  from typing import Any, Dict, List, NoReturn, Optional, cast
  import numpy
  from pyspark import SparkContext
  from pyspark.sql.types import Row, StructType, _create_row, _parse_datatype_json_string
  from pyspark.sql import SparkSession
label_desc: Use image node_id 2 for calling a global function with example usage: _test() without return types