code: def temporal_train_test_split(
      y,
      X=None,
      test_size=None,
      train_size=None,
      fh=None,
      anchor="start",
  ):
      """Split time series data into temporal train and test sets.
  
      DEPRECATED - use sktime.split.temporal_train_test_split instead.
      """
      from warnings import warn
  
      from sktime.split import temporal_train_test_split as _tts
  
      warn(
          "WARNING - the old location of temporal_train_test_split in "
          "sktime.forecasting.model_selection is deprecated and is scheduled for "
          "imminent removal in a MINOR version. "
          "Please update any import statements to "
          "from sktime.split import temporal_train_test_split.",
          DeprecationWarning,
      )
  
      return _tts(
          y=y,
          X=X,
          test_size=test_size,
          train_size=train_size,
          fh=fh,
          anchor=anchor,
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: temporal_train_test_split(y, X, test_size, train_size, fh, anchor) and returns: _tts