code: def test_store_index_name_numpy_str(
      tmp_path, table_format, setup_path, unit, tz
  ):
      # GH #13492
      idx = DatetimeIndex(
          [dt.date(2000, 1, 1), dt.date(2000, 1, 2)],
          name="cols\u05d2",
      ).tz_localize(tz)
      idx1 = (
          DatetimeIndex(
              [dt.date(2010, 1, 1), dt.date(2010, 1, 2)],
              name="rows\u05d0",
          )
          .as_unit(unit)
          .tz_localize(tz)
      )
      df = DataFrame(
          np.arange(4).reshape(2, 2), columns=idx, index=idx1
      )
  
      # This used to fail, returning numpy strings instead of python strings.
      path = tmp_path / setup_path
      df.to_hdf(path, key="df", format=table_format)
      df2 = read_hdf(path, "df")
  
      tm.assert_frame_equal(df, df2, check_names=True)
  
      assert isinstance(df2.index.name, str)
      assert isinstance(df2.columns.name, str)
  
imports: import contextlib
  import datetime
  import hashlib
  import tempfile
  import time
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timestamp, concat, date_range, period_range, timedelta_range
  import pandas._testing
  from pandas.tests.io.pytables.common import _maybe_remove, ensure_clean_store
  from pandas.io.pytables import HDFStore, read_hdf
label_desc: Use image node_id 21 for calling a global function with example usage: test_store_index_name_numpy_str(tmp_path, table_format, setup_path, unit, tz) without return types