code: def gq_summary_stats(genotypes: Union[Column, str]) -> Column:
      """
      Computes summary statistics about the genotype quality field for an array of genotype structs. See :ref:`variant-qc`.
  
      Added in version 0.3.0.
  
      Examples:
          >>> genotypes = [
          ... Row(conditionalQuality=1),
          ... Row(conditionalQuality=2),
          ... Row(conditionalQuality=3)]
          >>> df = spark.createDataFrame([Row(genotypes=genotypes)], 'genotypes: array<struct<conditionalQuality: int>>')
          >>> df.select(glow.expand_struct(glow.gq_summary_stats('genotypes'))).collect()
          [Row(mean=2.0, stdDev=1.0, min=1.0, max=3.0)]
  
      Args:
          genotypes : The array of genotype structs with ``conditionalQuality`` field
  
      Returns:
          A struct containing ``mean``, ``stdDev``, ``min``, and ``max`` of genotype qualities
      """
      assert check_argument_types()
      output = Column(
          sc()._jvm.io.projectglow.functions.gq_summary_stats(
              _to_java_column(genotypes)
          )
      )
      assert check_return_type(output)
      return output
  
imports: from pyspark import SparkContext
  from pyspark.sql.column import Column, _to_java_column, _to_seq
  from typeguard import check_argument_types, check_return_type
  from typing import Union
label_desc: Use image node_id 17 for calling a global function with example usage: gq_summary_stats(genotypes) and returns: output