code: def _test() -> None:
      import os
      import doctest
      import sys
      from pyspark.sql import SparkSession
      import pyspark.pandas.utils
  
      os.chdir(os.environ["SPARK_HOME"])
  
      globs = pyspark.pandas.utils.__dict__.copy()
      globs["ps"] = pyspark.pandas
      globs["sf"] = F
      spark = (
          SparkSession.builder.master("local[4]")
          .appName("pyspark.pandas.utils tests")
          .getOrCreate()
      )
      (failure_count, test_count) = doctest.testmod(
          pyspark.pandas.utils,
          globs=globs,
          optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE,
      )
      spark.stop()
      if failure_count:
          sys.exit(-1)
  
imports: import functools
  from contextlib import contextmanager
  import os
  from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union, TYPE_CHECKING, cast, no_type_check, overload
  import warnings
  import pandas
  from pandas.api.types import is_list_like
  from pyspark.sql import functions, Column, DataFrame, SparkSession
  from pyspark.sql.types import DoubleType
  from pyspark.sql.utils import is_remote, get_dataframe_class
  from pyspark.errors import PySparkTypeError
  from pyspark import pandas
  from pyspark.pandas._typing import Axis, Label, Name, DataFrameOrSeries
  from pyspark.pandas.typedef.typehints import as_spark_type
label_desc: Use image node_id 29 for calling a global function with example usage: _test() without return types