code: def setup(self, convert_dates):
      self.fname = "__test__.dta"
      N = self.N = 100000
      C = self.C = 5
      self.df = DataFrame(
          np.random.randn(N, C),
          columns=[f"float{i}" for i in range(C)],
          index=date_range("20000101", periods=N, freq="h"),
      )
      self.df["object"] = Index(
          [f"i-{i}" for i in range(self.N)], dtype=object
      )
      self.df["int8_"] = np.random.randint(
          np.iinfo(np.int8).min, np.iinfo(np.int8).max - 27, N
      )
      self.df["int16_"] = np.random.randint(
          np.iinfo(np.int16).min, np.iinfo(np.int16).max - 27, N
      )
      self.df["int32_"] = np.random.randint(
          np.iinfo(np.int32).min, np.iinfo(np.int32).max - 27, N
      )
      self.df["float32_"] = np.array(
          np.random.randn(N), dtype=np.float32
      )
      self.convert_dates = {"index": convert_dates}
      self.df.to_stata(self.fname, convert_dates=self.convert_dates)
  
file_path: pandas/asv_bench/benchmarks/io/stata.py
imports: import numpy
  from pandas import DataFrame, Index, date_range, read_stata
  from ..pandas_vb_common import BaseIO
  from ..pandas_vb_common import setup
label_desc: Use image node_id 1 for calling the Stata obj's underlying member method code with example usage: obj.setup(convert_dates) without return types