code: def column_to_list(df: DataFrame, col_name: str) -> list[Any]:
      """Collect column to list of values.
  
      :param df: Input DataFrame
      :type df: pyspark.sql.DataFrame
      :param col_name: Column to collect
      :type col_name: str
      :return: List of values
      :rtype: List[Any]
      """
      return [x[col_name] for x in df.select(col_name).collect()]
  
file_path: quinn/quinn/dataframe_helpers.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from typing import Any
  from pyspark.sql.types import StructField, StructType
label_desc: Use image node_id 1 for calling a global function with example usage: column_to_list(df, col_name) and returns: unknown