code: def _to_tsdownsample_args(
      x: np.ndarray | None, y: np.ndarray
  ) -> Tuple[np.ndarray, ...]:
      """Converts x & y to the arguments expected by tsdownsample."""
      if x is None:
          return (y,)
      return (x, y)
  
imports: from __future__ import annotations
  import math
  from typing import Tuple
  import numpy
  from tsdownsample import EveryNthDownsampler, LTTBDownsampler, MinMaxDownsampler, MinMaxLTTBDownsampler
  from ..aggregation.aggregation_interface import DataAggregator, DataPointSelector
label_desc: Use image node_id 1 for calling a global function with example usage: _to_tsdownsample_args(x, y) and returns: x,  y, y