code: def test_preserve_index_pandas(version):
      df = pd.DataFrame({"a": [1, 2, 3]}, index=["a", "b", "c"])
  
      if version == 1:
          expected = df.reset_index(drop=True).rename(columns=str)
      else:
          expected = df
  
      _check_pandas_roundtrip(df, expected, version=version)
  
imports: import io
  import os
  import sys
  import tempfile
  import pytest
  import hypothesis
  import hypothesis.strategies
  import numpy
  import pyarrow
  import pyarrow.tests.strategies
  from pyarrow.feather import read_feather, write_feather, read_table, FeatherDataset
label_desc: Use image node_id 58 for calling a global function with example usage: test_preserve_index_pandas(version) without return types