code: def test_map_defaultdict_unmutated(na_action):
      # GH 48813
      s = Series([1, 2, np.nan])
      default_map = defaultdict(
          lambda: "missing", {1: "a", 2: "b", np.nan: "c"}
      )
      expected_default_map = default_map.copy()
      s.map(default_map, na_action=na_action)
      assert default_map == expected_default_map
  
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 28 for calling a global function with example usage: test_map_defaultdict_unmutated(na_action) without return types