code: def test_read_hdf_index_not_view(tmp_path, setup_path):
      # GH 37441
      # Ensure that the index of the DataFrame is not a view
      # into the original recarray that pytables reads in
      df = DataFrame(
          np.random.default_rng(2).random((4, 5)),
          index=[0, 1, 2, 3],
          columns=list("ABCDE"),
      )
  
      path = tmp_path / setup_path
      df.to_hdf(path, key="df", mode="w", format="table")
  
      df2 = read_hdf(path, "df")
      assert df2.index._data.base is None
      tm.assert_frame_equal(df, df2)
  
imports: from contextlib import closing
  from pathlib import Path
  import re
  import numpy
  import pytest
  from pandas._libs.tslibs import Timestamp
  from pandas.compat import is_platform_windows
  import pandas
  from pandas import DataFrame, HDFStore, Index, Series, _testing, date_range, read_hdf
  from pandas.tests.io.pytables.common import _maybe_remove, ensure_clean_store
  from pandas.util import _test_decorators
  from pandas.io.pytables import TableIterator
label_desc: Use image node_id 11 for calling a global function with example usage: test_read_hdf_index_not_view(tmp_path, setup_path) without return types