code: def test_get_cutoff_wrong_input(bad_inputs):
      """Tests that get_cutoff raises error on bad input when input checks are enabled.
  
      Parameters
      ----------
      bad_inputs : inputs that should set off the input checks
  
      Raises
      ------
      Exception (from pytest) if the error is not raised as expected
      """
      with pytest.raises(
          Exception, match="must be of Series, Panel, or Hierarchical"
      ):
          get_cutoff(bad_inputs, check_input=True)
  
file_path: sktime/sktime/datatypes/tests/test_utils.py
imports: import numpy
  import pandas
  import pytest
  from sktime.datatypes._check import check_is_mtype
  from sktime.datatypes._examples import get_examples
  from sktime.datatypes._utilities import _get_cutoff_from_index, get_cutoff, get_slice, get_time_index, get_window
  from sktime.utils._testing.hierarchical import _make_hierarchical
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_cutoff_wrong_input(bad_inputs) without return types