code: def call_summary_stats(genotypes: Union[Column, str]) -> Column:
      """
      Computes call summary statistics for an array of genotype structs. See :ref:`variant-qc` for more details.
  
      Added in version 0.3.0.
  
      Examples:
          >>> schema = 'genotypes: array<struct<calls: array<int>>>'
          >>> df = spark.createDataFrame([Row(genotypes=[Row(calls=[0, 0]), Row(calls=[1, 0]), Row(calls=[1, 1])])], schema)
          >>> df.select(glow.expand_struct(glow.call_summary_stats('genotypes'))).collect()
          [Row(callRate=1.0, nCalled=3, nUncalled=0, nHet=1, nHomozygous=[1, 1], nNonRef=2, nAllelesCalled=6, alleleCounts=[3, 3], alleleFrequencies=[0.5, 0.5])]
  
      Args:
          genotypes : The array of genotype structs with ``calls`` field
  
      Returns:
          A struct containing ``callRate``, ``nCalled``, ``nUncalled``, ``nHet``, ``nHomozygous``, ``nNonRef``, ``nAllelesCalled``, ``alleleCounts``, ``alleleFrequencies`` fields. See :ref:`variant-qc`.
      """
      assert check_argument_types()
      output = Column(
          sc()._jvm.io.projectglow.functions.call_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 14 for calling a global function with example usage: call_summary_stats(genotypes) and returns: output