code: def array_to_vector(col: Column) -> Column:
      return _invoke_function("array_to_vector", _to_col(col))
  
imports: from pyspark.ml import functions
  from pyspark.sql.connect.column import Column
  from pyspark.sql.connect.functions.builtin import _invoke_function, _to_col, lit
label_desc: Use image node_id 2 for calling a global function with example usage: array_to_vector(col) and returns: _invoke_function