code: def test_skiprows_by_index_inference():
      data = """
  To be skipped
  Not  To  Be  Skipped
  Once more to be skipped
  123  34   8      123
  456  78   9      456
  """.strip()
      skiprows = [0, 2]
  
      depr_msg = (
          "The 'delim_whitespace' keyword in pd.read_csv is deprecated"
      )
      with tm.assert_produces_warning(FutureWarning, match=depr_msg):
          expected = read_csv(
              StringIO(data), skiprows=skiprows, delim_whitespace=True
          )
  
      result = read_fwf(StringIO(data), skiprows=skiprows)
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime
  from io import BytesIO, StringIO
  from pathlib import Path
  import numpy
  import pytest
  from pandas.errors import EmptyDataError
  import pandas
  from pandas import DataFrame, DatetimeIndex
  import pandas._testing
  from pandas.core.arrays import ArrowStringArray, StringArray
  from pandas.io.common import urlopen
  from pandas.io.parsers import read_csv, read_fwf
label_desc: Use image node_id 28 for calling a global function with example usage: test_skiprows_by_index_inference() without return types