code: def _test() -> None:
      import os
      import doctest
      import sys
      from pyspark.sql import SparkSession
      import pyspark.pandas.numpy_compat
  
      os.chdir(os.environ["SPARK_HOME"])
  
      globs = pyspark.pandas.numpy_compat.__dict__.copy()
      globs["ps"] = pyspark.pandas
      spark = (
          SparkSession.builder.master("local[4]")
          .appName("pyspark.pandas.numpy_compat tests")
          .getOrCreate()
      )
      (failure_count, test_count) = doctest.testmod(
          pyspark.pandas.numpy_compat,
          globs=globs,
          optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE,
      )
      spark.stop()
      if failure_count:
          sys.exit(-1)
  
file_path: spark/python/pyspark/pandas/numpy_compat.py
imports: from typing import Any, Callable, no_type_check
  import numpy
  from pyspark.sql import functions
  from pyspark.sql.pandas.functions import pandas_udf
  from pyspark.sql.types import DoubleType, LongType, BooleanType
  from pyspark.pandas.base import IndexOpsMixin
label_desc: Use image node_id 3 for calling a global function with example usage: _test() without return types