code: def subset_struct(struct: Union[Column, str], *fields: str) -> Column:
      """
      Selects fields from a struct.
  
      Added in version 0.3.0.
  
      Examples:
          >>> df = spark.createDataFrame([Row(struct=Row(a=1, b=2, c=3))])
          >>> df.select(glow.subset_struct('struct', 'a', 'c').alias('struct')).collect()
          [Row(struct=Row(a=1, c=3))]
  
      Args:
          struct : Struct from which to select fields
          fields : Fields to select
  
      Returns:
          A struct containing only the indicated fields
      """
      assert check_argument_types()
      output = Column(
          sc()._jvm.io.projectglow.functions.subset_struct(
              _to_java_column(struct), _to_seq(sc(), fields)
          )
      )
      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 8 for calling a global function with example usage: subset_struct(struct) and returns: output