code: def test_write_compliant_nested_type_disable(tempdir, test_data):
      # prepare dataframe for testing
      df = pd.DataFrame(data=test_data)
      # verify that we can read/write with new flag disabled
      _roundtrip_pandas_dataframe(
          df, write_kwargs={"use_compliant_nested_type": False}
      )
  
      # Write to a parquet file while disabling 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",
          use_compliant_nested_type=False,
      ) as writer:
          writer.write_table(table)
      new_table = _read_table(path)
  
      # Validate that "items" columns is not compliant to Parquet nested format
      # Should be like this: list<item: struct<name: string, value: string>>
      assert isinstance(new_table.schema.types[0], pa.ListType)
      assert new_table.schema.types[0].value_field.name == "item"
  
      # Verify that the new table can be read/written correctly
      _check_roundtrip(new_table, use_compliant_nested_type=False)
  
imports: import pytest
  import pyarrow
label_desc: Use image node_id 2 for calling a global function with example usage: test_write_compliant_nested_type_disable(tempdir, test_data) without return types