code: def _test() -> None:
      import sys
      import doctest
      from pyspark.sql import SparkSession as PySparkSession
      import pyspark.sql.connect.group
  
      globs = pyspark.sql.connect.group.__dict__.copy()
  
      globs["spark"] = (
          PySparkSession.builder.appName("sql.connect.group tests")
          .remote("local[4]")
          .getOrCreate()
      )
  
      (failure_count, test_count) = doctest.testmod(
          pyspark.sql.connect.group,
          globs=globs,
          optionflags=doctest.ELLIPSIS
          | doctest.NORMALIZE_WHITESPACE
          | doctest.REPORT_NDIFF,
      )
  
      globs["spark"].stop()
  
      if failure_count:
          sys.exit(-1)
  
imports: from pyspark.sql.connect.utils import check_dependencies
  import warnings
  from typing import Any, Dict, List, Sequence, Union, TYPE_CHECKING, Optional, overload, cast
  from pyspark.rdd import PythonEvalType
  from pyspark.sql.group import GroupedData
  from pyspark.sql.pandas.group_ops import PandasCogroupedOps
  from pyspark.sql.types import NumericType
  from pyspark.sql.types import StructType
  import pyspark.sql.connect.plan
  from pyspark.sql.connect.column import Column
  from pyspark.sql.connect.functions.builtin import _invoke_function, col, lit
  from pyspark.errors import PySparkNotImplementedError, PySparkTypeError
label_desc: Use image node_id 1 for calling a global function with example usage: _test() without return types