code: def describe_to_list_of_dictionaries():
      def returns_a_list_of_dicts(spark):
          data = [("jose", 1), ("li", 2), ("luisa", 3)]
          source_df = spark.createDataFrame(data, ["name", "age"])
          actual = quinn.to_list_of_dictionaries(source_df)
          expected = [
              {"name": "jose", "age": 1},
              {"name": "li", "age": 2},
              {"name": "luisa", "age": 3},
          ]
          assert expected == actual
  
file_path: quinn/tests/test_dataframe_helpers.py
imports: import quinn
  from tests.conftest import auto_inject_fixtures
  import chispa
  from pyspark.sql.types import IntegerType, StringType, StructType, StructField
label_desc: Use image node_id 3 for calling a global function with example usage: describe_to_list_of_dictionaries() without return types