code: def test_na_values_dict_col_index(all_parsers):
      # see gh-14203
      data = "a\nfoo\n1"
      parser = all_parsers
      na_values = {0: "foo"}
  
      if parser.engine == "pyarrow":
          msg = "The pyarrow engine doesn't support passing a dict for na_values"
          with pytest.raises(ValueError, match=msg):
              parser.read_csv(StringIO(data), na_values=na_values)
          return
  
      result = parser.read_csv(StringIO(data), na_values=na_values)
      expected = DataFrame({"a": [np.nan, 1]})
      tm.assert_frame_equal(result, expected)
  
imports: from io import StringIO
  import numpy
  import pytest
  from pandas._libs.parsers import STR_NA_VALUES
  from pandas import DataFrame, Index, MultiIndex
  import pandas._testing
label_desc: Use image node_id 18 for calling a global function with example usage: test_na_values_dict_col_index(all_parsers) without return types