code: def test_map_scalar_as_py_with_custom_field_name():
      """
      Check we can call `MapScalar.as_py` with custom field names
  
      See https://github.com/apache/arrow/issues/36809
      """
      assert pa.scalar(
          [("foo", "bar")],
          pa.map_(pa.string(), pa.string()),
      ).as_py() == [("foo", "bar")]
  
      assert pa.scalar(
          [("foo", "bar")],
          pa.map_(
              pa.field("custom_key", pa.string(), nullable=False),
              pa.field("custom_value", pa.string()),
          ),
      ).as_py() == [("foo", "bar")]
  
imports: import datetime
  import decimal
  import pytest
  import sys
  import weakref
  import numpy
  import pyarrow
  import pyarrow.compute
  from pyarrow.tests import util
label_desc: Use image node_id 42 for calling a global function with example usage: test_map_scalar_as_py_with_custom_field_name() without return types