code: def test_write_compliant_nested_type_enable(tempdir, test_data):
      # prepare dataframe for testing
      df = pd.DataFrame(data=test_data)
      # verify that we can read/write pandas df with new flag (default behaviour)
      _roundtrip_pandas_dataframe(df, write_kwargs={})
  
      # Write to a parquet file with compliant nested type
      table = pa.Table.from_pandas(df, preserve_index=False)
      path = str(tempdir / "data.parquet")
      with pq.ParquetWriter(
          path, table.schema, version="2.6"
      ) as writer:
          writer.write_table(table)
      # Read back as a table
      new_table = _read_table(path)
      # Validate that "items" columns compliant to Parquet nested format
      # Should be like this: list<element: struct<name: string, value: string>>
      assert isinstance(new_table.schema.types[0], pa.ListType)
      assert new_table.schema.types[0].value_field.name == "element"
  
      # Verify that the new table can be read/written correctly
      _check_roundtrip(new_table)
  
imports: import pytest
  import pyarrow
label_desc: Use image node_id 1 for calling a global function with example usage: test_write_compliant_nested_type_enable(tempdir, test_data) without return types