code: def test_map_missing_mixed(vals, mapping, exp, using_infer_string):
      # GH20495
      s = Series(vals + [np.nan])
      result = s.map(mapping)
      exp = Series(exp)
      if using_infer_string and mapping == {np.nan: "not NaN"}:
          exp.iloc[-1] = np.nan
      tm.assert_series_equal(result, exp)
  
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 43 for calling a global function with example usage: test_map_missing_mixed(vals, mapping, exp, using_infer_string) without return types