code: def test_convert_array(spark):
      str_list = ["a", "b"]
      df = spark.createDataFrame(str_list, StringType())
      ndarray = np.array([1.0, 2.1, 3.2])
      output_rows = df.withColumn("array", lit(ndarray)).collect()
      expected_array = [1.0, 2.1, 3.2]
      assert output_rows[0].array == expected_array
      assert output_rows[1].array == expected_array
  
file_path: glow/python/glow/tests/test_conversions.py
imports: from glow.conversions import OneDimensionalDoubleNumpyArrayConverter, TwoDimensionalDoubleNumpyArrayConverter
  from importlib import reload
  import numpy
  from py4j.protocol import Py4JJavaError
  from pyspark.ml.linalg import DenseMatrix
  from pyspark.sql.functions import lit
  from pyspark.sql.types import StringType
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_convert_array(spark) without return types