code: def _test() -> None:
      import doctest
      import pyspark.mllib.recommendation
      from pyspark.sql import SQLContext
  
      globs = pyspark.mllib.recommendation.__dict__.copy()
      sc = SparkContext("local[4]", "PythonTest")
      globs["sc"] = sc
      globs["sqlContext"] = SQLContext(sc)
      (failure_count, test_count) = doctest.testmod(
          globs=globs, optionflags=doctest.ELLIPSIS
      )
      globs["sc"].stop()
      if failure_count:
          sys.exit(-1)
  
imports: import array
  import sys
  from typing import Any, List, NamedTuple, Optional, Tuple, Type, Union
  from pyspark import SparkContext, since
  from pyspark.rdd import RDD
  from pyspark.mllib.common import JavaModelWrapper, callMLlibFunc, inherit_doc
  from pyspark.mllib.util import JavaLoader, JavaSaveable
  from pyspark.sql import DataFrame
label_desc: Use image node_id 1 for calling a global function with example usage: _test() without return types