code: def vector_to_array(col: Column, dtype: str = "float64") -> Column:
      return _invoke_function(
          "vector_to_array", _to_col(col), lit(dtype)
      )
  
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 1 for calling a global function with example usage: vector_to_array(col, dtype) and returns: _invoke_function