code: def test_temporal_train_test_split_int_only_y():
      """Test temporal_train_test_split expected output on float size inputs."""
      y = load_airline()
  
      # only test_size
      y_train, y_test = temporal_train_test_split(y, test_size=29)
      assert isinstance(y_train, pd.Series)
      assert isinstance(y_test, pd.Series)
      assert len(y_train) == 115
      assert len(y_test) == 29
      assert (y[:115] == y_train).all()
      assert (y[-29:] == y_test).all()
  
      # only train_size
      y_train, y_test = temporal_train_test_split(y, train_size=115)
      assert isinstance(y_train, pd.Series)
      assert isinstance(y_test, pd.Series)
      assert len(y_train) == 115
      assert len(y_test) == 29
      assert (y[:115] == y_train).all()
      assert (y[-29:] == y_test).all()
  
      # both train and test size
      y_train, y_test = temporal_train_test_split(
          y, train_size=43, test_size=29
      )
      assert isinstance(y_train, pd.Series)
      assert isinstance(y_test, pd.Series)
      assert len(y_train) == 43
      assert len(y_test) == 29
      assert (y[:43] == y_train).all()
      assert (y[43 : (43 + 29)] == y_test).all()
  
file_path: sktime/sktime/split/tests/test_temporaltraintest.py
imports: import numpy
  import pandas
  import pytest
  from sktime.datasets import load_airline
  from sktime.datatypes._utilities import get_cutoff
  from sktime.forecasting.tests._config import TEST_OOS_FHS, VALID_INDEX_FH_COMBINATIONS
  from sktime.split import temporal_train_test_split
  from sktime.utils._testing.forecasting import _make_fh
  from sktime.utils._testing.series import _make_series
label_desc: Use image node_id 4 for calling a global function with example usage: test_temporal_train_test_split_int_only_y() without return types