code: def _test() -> None:
      import doctest
      from pyspark.sql import SparkSession
      import pyspark.sql.functions.partitioning
  
      globs = pyspark.sql.functions.partitioning.__dict__.copy()
      spark = (
          SparkSession.builder.master("local[4]")
          .appName("sql.functions.partitioning tests")
          .getOrCreate()
      )
      globs["spark"] = spark
      (failure_count, test_count) = doctest.testmod(
          pyspark.sql.functions.partitioning,
          globs=globs,
          optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE,
      )
      spark.stop()
      if failure_count:
          sys.exit(-1)
  
file_path: spark/python/pyspark/sql/functions/partitioning.py
imports: import sys
  from typing import TYPE_CHECKING, Union
  from pyspark.errors import PySparkTypeError
  from pyspark.sql.column import Column, _to_java_column, _create_column_from_literal
  from pyspark.sql.functions.builtin import _invoke_function_over_columns, _invoke_function
  from pyspark.sql.utils import try_partitioning_remote_functions, get_active_spark_context
label_desc: Use image node_id 6 for calling a global function with example usage: _test() without return types