code: def test_read_pandas_map_fields(tempdir):
      # ARROW-10140 - table created from Pandas with mapping fields
      df = pd.DataFrame(
          {
              "col1": pd.Series(
                  [
                      [("id", "something"), ("value2", "else")],
                      [("id", "something2"), ("value", "else2")],
                  ]
              ),
              "col2": pd.Series(["foo", "bar"]),
          }
      )
  
      filename = tempdir / "data.parquet"
  
      udt = pa.map_(pa.string(), pa.string())
      schema = pa.schema(
          [pa.field("col1", udt), pa.field("col2", pa.string())]
      )
      arrow_table = pa.Table.from_pandas(df, schema)
  
      _write_table(arrow_table, filename)
  
      result = pq.read_pandas(filename).to_pandas()
      tm.assert_frame_equal(result, df)
  
imports: import io
  import json
  import numpy
  import pytest
  import pyarrow
  from pyarrow.fs import LocalFileSystem, SubTreeFileSystem
  from pyarrow.util import guid
  from pyarrow.vendored.version import Version
label_desc: Use image node_id 27 for calling a global function with example usage: test_read_pandas_map_fields(tempdir) without return types