code: def _check_cutoffs_fh_y(
      cutoffs: VALID_CUTOFF_TYPES,
      fh: FORECASTING_HORIZON_TYPES,
      y: pd.Index,
  ) -> None:
      """Check that combination of inputs is compatible.
  
      Currently, only two cases are allowed:
      either both `cutoffs` and `fh` are integers, or they are datetime or timedelta.
  
      Parameters
      ----------
      cutoffs : np.array or pd.Index
          Cutoff points, positive and integer- or datetime-index like.
          Type should match the type of `fh` input.
      fh : int, timedelta, list or np.ndarray of ints or timedeltas
          Type should match the type of `cutoffs` input.
      y : pd.Index
          Index of time series
  
      Raises
      ------
      ValueError
          if max cutoff plus max `fh` is above the last observation in `y`
      TypeError
          if `cutoffs` and `fh` type combination is not supported
      """
      max_cutoff = np.max(cutoffs)
      max_fh = fh.max()
  
      msg = "`fh` is incompatible with given `cutoffs` and `y`."
      if is_int(x=max_cutoff) and is_int(x=max_fh):
          if max_cutoff + max_fh > y.shape[0]:
              raise ValueError(msg)
      elif is_datetime(x=max_cutoff) and is_timedelta(x=max_fh):
          if max_cutoff + max_fh > y.max():
              raise ValueError(msg)
      else:
          raise TypeError("Unsupported type of `cutoffs` and `fh`")
  
imports: from typing import Optional
  import numpy
  import pandas
  from sktime.split.base import BaseSplitter
  from sktime.split.base._common import ACCEPTED_Y_TYPES, DEFAULT_FH, DEFAULT_WINDOW_LENGTH, FORECASTING_HORIZON_TYPES, SPLIT_GENERATOR_TYPE, _check_fh, _check_inputs_for_compatibility, _get_train_window_via_endpoint
  from sktime.utils.validation import ACCEPTED_WINDOW_LENGTH_TYPES, array_is_datetime64, array_is_int, check_window_length, is_datetime, is_int, is_timedelta
  from sktime.utils.validation.forecasting import VALID_CUTOFF_TYPES, check_cutoffs
label_desc: Use image node_id 2 for calling a global function with example usage: _check_cutoffs_fh_y(cutoffs, fh, y) without return types