code: def _test() -> None:
      import doctest
      from pyspark.sql import SparkSession
      import pyspark.sql.pandas.conversion
  
      globs = pyspark.sql.pandas.conversion.__dict__.copy()
      spark = (
          SparkSession.builder.master("local[4]")
          .appName("sql.pandas.conversion tests")
          .getOrCreate()
      )
      globs["spark"] = spark
      (failure_count, test_count) = doctest.testmod(
          pyspark.sql.pandas.conversion,
          globs=globs,
          optionflags=doctest.ELLIPSIS
          | doctest.NORMALIZE_WHITESPACE
          | doctest.REPORT_NDIFF,
      )
      spark.stop()
      if failure_count:
          sys.exit(-1)
  
imports: import sys
  from typing import Any, Callable, List, Optional, Union, no_type_check, overload, TYPE_CHECKING
  from warnings import warn
  from pyspark.errors.exceptions.captured import unwrap_spark_exception
  from pyspark.loose_version import LooseVersion
  from pyspark.rdd import _load_from_socket
  from pyspark.sql.pandas.serializers import ArrowCollectSerializer
  from pyspark.sql.pandas.types import _dedup_names
  from pyspark.sql.types import ArrayType, MapType, TimestampType, StructType, DataType, _create_row
  from pyspark.sql.utils import is_timestamp_ntz_preferred
  from pyspark.traceback_utils import SCCallSiteSync
  from pyspark.errors import PySparkTypeError
label_desc: Use image node_id 1 for calling a global function with example usage: _test() without return types