code: def test_map_abc_mapping_with_missing(non_dict_mapping_subclass):
      # https://github.com/pandas-dev/pandas/issues/29733
      # Check collections.abc.Mapping support as mapper for Series.map
      class NonDictMappingWithMissing(non_dict_mapping_subclass):
          def __missing__(self, key):
              return "missing"
  
      s = Series([1, 2, 3])
      not_a_dictionary = NonDictMappingWithMissing({3: "three"})
      result = s.map(not_a_dictionary)
      # __missing__ is a dict concept, not a Mapping concept,
      # so it should not change the result!
      expected = Series([np.nan, np.nan, "three"])
      tm.assert_series_equal(result, expected)
  
imports: from collections import Counter, defaultdict
  from decimal import Decimal
  import math
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, bdate_range, date_range, isna, timedelta_range
  import pandas._testing
label_desc: Use image node_id 35 for calling a global function with example usage: test_map_abc_mapping_with_missing(non_dict_mapping_subclass) and returns: str