code: def setup(self, constructor, replace_data):
      N = 10**3
      data = {
          "Series": pd.Series(np.random.randint(N, size=N)),
          "DataFrame": pd.DataFrame(
              {
                  "A": np.random.randint(N, size=N),
                  "B": np.random.randint(N, size=N),
              }
          ),
      }
      self.to_replace = {i: getattr(pd, replace_data) for i in range(N)}
      self.data = data[constructor]
  
file_path: pandas/asv_bench/benchmarks/replace.py
imports: import numpy
  import pandas
  from .pandas_vb_common import setup
label_desc: Use image node_id 1 for calling the Convert obj's underlying member method code with example usage: obj.setup(constructor, replace_data) without return types