class_docstr: This class is primarily meant to be instantiated from ``train_test_split()`` function.
class_docstr_tok: ["This","class","is","primarily","meant","to","be","instantiated","from","``","train_test_split","(",")","``","function","."]
code: def make_splitter(
      cls,
      data: Union[TimeSeries, Sequence[TimeSeries]],
      test_size: Optional[Union[float, int]] = 0.25,
      axis: Optional[int] = 0,
      input_size: Optional[int] = 0,
      horizon: Optional[int] = 0,
      vertical_split_type: Optional[str] = SIMPLE,
      lazy: bool = False,
  ) -> Union[
      Tuple[TimeSeries, TimeSeries],
      Tuple[Sequence[TimeSeries], Sequence[TimeSeries]],
  ]:
      if not isinstance(data, Sequence):
          axis = 1
          data = [
              data
          ]  # convert to sequence for unified processing later
          single_timeseries = True
      else:
          single_timeseries = False
  
      train_set = cls(
          type="train",
          data=data,
          test_size=test_size,
          axis=axis,
          input_size=input_size,
          horizon=horizon,
          vertical_split_type=vertical_split_type,
      )
  
      test_set = cls(
          type="test",
          data=data,
          test_size=test_size,
          axis=axis,
          input_size=input_size,
          horizon=horizon,
          vertical_split_type=vertical_split_type,
      )
  
      if single_timeseries:
          return train_set[0], test_set[0]
      else:
          if lazy:
              return train_set, test_set
          else:
              return list(train_set), list(test_set)
  
file_path: darts/darts/utils/model_selection.py
imports: from typing import Optional, Sequence, Tuple, Union
  from darts import TimeSeries
label_desc: Use image node_id 6 for calling the SplitTimeSeriesSequence obj's underlying member method code with example usage: obj.make_splitter(cls, data, test_size, axis, input_size, horizon, vertical_split_type, lazy) and returns: train_set,  test_set, train_set,  test_set, list,  list