code: def test_map_with_invalid_na_action_raises():
      # https://github.com/pandas-dev/pandas/issues/32815
      s = Series([1, 2, 3])
      msg = "na_action must either be 'ignore' or None"
      with pytest.raises(ValueError, match=msg):
          s.map(lambda x: x, na_action="____")
  
imports: from itertools import chain
  import re
  import numpy
  import pytest
  from pandas.errors import SpecificationError
  from pandas import DataFrame, Series, date_range
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_map_with_invalid_na_action_raises() without return types