code: def _convert_to_numpy(data, fixed, order, seasonal, use_numpy):
      y = data.y
      x = data.x
      z = fixed
      period = None
      if use_numpy:
          y = np.asarray(y)
          x = np.asarray(x)
          if isinstance(order, dict):
              order = {i: v for i, v in enumerate(order.values())}
          if fixed is not None:
              z = np.asarray(fixed)
          period = 4 if seasonal else None
      return y, x, z, order, period
  
imports: from typing import NamedTuple
  import numpy
  from numpy.testing import assert_allclose
  import pandas
  from pandas.testing import assert_index_equal
  import pytest
  from statsmodels.datasets import danish_data
  from statsmodels.iolib.summary import Summary
  from statsmodels.tools.sm_exceptions import SpecificationWarning
  from statsmodels.tsa.ar_model import AutoReg
  from statsmodels.tsa.ardl.model import ARDL, UECM, ARDLResults, ardl_select_order
  from statsmodels.tsa.deterministic import DeterministicProcess
label_desc: Use image node_id 15 for calling a global function with example usage: _convert_to_numpy(data, fixed, order, seasonal, use_numpy) and returns: y,  x,  z,  order,  period