code: def test_print_schema_as_code(spark):
      fields = []
      fields.append(StructField("simple_int", IntegerType()))
      fields.append(
          StructField("decimal_with_nums", DecimalType(19, 8))
      )
      fields.append(StructField("array", ArrayType(FloatType())))
      fields.append(
          StructField(
              "map", MapType(StringType(), ArrayType(DoubleType()))
          )
      )
      fields.append(
          StructField(
              "struct",
              StructType(
                  [
                      StructField("first", StringType()),
                      StructField("second", TimestampType()),
                  ]
              ),
          )
      )
  
      schema = StructType(fields=fields)
  
      assert_basic_schema_equality(
          schema, eval(print_schema_as_code(schema))
      )
  
file_path: quinn/tests/test_schema_helpers.py
imports: from __future__ import annotations
  from pyspark.sql.types import StructType, IntegerType, DecimalType, ArrayType, FloatType, MapType, StringType, DoubleType, TimestampType, StructField
  import pyspark.sql.dataframe
  from quinn.schema_helpers import print_schema_as_code, schema_from_csv, complex_fields
  from chispa.schema_comparer import assert_basic_schema_equality
  import pytest
  from tests.conftest import auto_inject_fixtures
label_desc: Use image node_id 1 for calling a global function with example usage: test_print_schema_as_code(spark) without return types