code: def test_no_na_filter_on_index(
      all_parsers, na_filter, index_data, request
  ):
      # see gh-5239
      #
      # Don't parse NA-values in index unless na_filter=True
      parser = all_parsers
      data = "a,b,c\n1,,3\n4,5,6"
  
      if parser.engine == "pyarrow" and na_filter is False:
          mark = pytest.mark.xfail(reason="mismatched index result")
          request.applymarker(mark)
  
      expected = DataFrame(
          {"a": [1, 4], "c": [3, 6]}, index=Index(index_data, name="b")
      )
      result = parser.read_csv(
          StringIO(data), index_col=[1], na_filter=na_filter
      )
      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 21 for calling a global function with example usage: test_no_na_filter_on_index(all_parsers, na_filter, index_data, request) without return types