code: def test_inf_na_values_with_int_index(all_parsers):
      # see gh-17128
      parser = all_parsers
      data = "idx,col1,col2\n1,3,4\n2,inf,-inf"
  
      # Don't fail with OverflowError with inf's and integer index column.
      out = parser.read_csv(
          StringIO(data), index_col=[0], na_values=["inf", "-inf"]
      )
      expected = DataFrame(
          {"col1": [3, np.nan], "col2": [4, np.nan]},
          index=Index([1, 2], name="idx"),
      )
      tm.assert_frame_equal(out, 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 22 for calling a global function with example usage: test_inf_na_values_with_int_index(all_parsers) without return types