code: def data(request) -> tuple[Float64Array, Float64Array]:
      g = np.random.RandomState([12839028, 3092183, 902813])
      e = g.standard_normal((2000, 2))
      phi = g.random_sample((3, 2, 2))
      phi[:, 0, 0] *= 0.8 / phi[:, 0, 0].sum()
      phi[:, 1, 1] *= 0.8 / phi[:, 1, 1].sum()
      phi[:, 0, 1] *= 0.2 / phi[:, 0, 1].sum()
      phi[:, 1, 0] *= 0.2 / phi[:, 1, 0].sum()
      y = e.copy()
      for i in range(3, y.shape[0]):
          y[i] = e[i]
          for j in range(3):
              y[i] += (phi[j] @ y[i - j - 1].T).T
      y = y[-1000:]
      if request.param:
          df = pd.DataFrame(y, columns=["y", "x"])
          return np.asarray(df.iloc[:, :1], dtype=float), np.asarray(
              df.iloc[:, 1:], dtype=float
          )
      return y[:, :1], y[:, 1:]
  
imports: from arch.compat.pandas import MONTH_END
  import numpy
  import pandas
  import pytest
  from arch.typing import ArrayLike2D, Float64Array
label_desc: Use image node_id 1 for calling a global function with example usage: data(request) and returns: y,  y, np,  np