code: def data(request):
      rs = np.random.RandomState([3290328901, 323293105, 121029109])
      scale = 0.01 if request.param[1] else 1
      y = np.cumsum(scale + scale * rs.standard_normal(300))
      if request.param[1]:
          y = np.exp(y)
      index = pd.date_range("2000-01-01", periods=300)
      if request.param[0] == "array":
          return y
      elif request.param[0] == "dataframe":
          return pd.DataFrame(y[:, None], columns=["y"], index=index)
      else:
          return pd.Series(y, name="y", index=index)
  
file_path: statsmodels/statsmodels/tsa/forecasting/tests/test_theta.py
imports: from itertools import product
  import numpy
  import pandas
  import pytest
  from statsmodels.tsa.forecasting.theta import ThetaModel
label_desc: Use image node_id 1 for calling a global function with example usage: data(request) and returns: y, pd, pd