code: def test_coerce_duration_to_int() -> None:
      """Test _coerce_duration_to_int."""
      assert _coerce_duration_to_int(duration=0) == 0
      assert _coerce_duration_to_int(duration=3) == 3
  
      duration = pd.offsets.Minute(75)
      assert _coerce_duration_to_int(duration=duration, freq="25T") == 3
  
      duration = pd.Timedelta(minutes=75)
      assert _coerce_duration_to_int(duration=duration, freq="25T") == 3
  
      duration = pd.to_timedelta([75, 100], unit="m")
      pd.testing.assert_index_equal(
          _coerce_duration_to_int(duration=duration, freq="25T"),
          pd.Index([3, 4], dtype=int),
      )
  
      duration = pd.Index(
          [pd.offsets.Minute(75), pd.offsets.Minute(100)]
      )
      pd.testing.assert_index_equal(
          _coerce_duration_to_int(duration=duration, freq="25T"),
          pd.Index([3, 4], dtype=int),
      )
  
file_path: sktime/sktime/utils/tests/test_datetime.py
imports: import datetime
  import numpy
  import pandas
  from sktime.datasets import load_airline
  from sktime.datatypes import VectorizedDF
  from sktime.datatypes._utilities import get_time_index
  from sktime.utils._testing.hierarchical import _bottom_hier_datagen
  from sktime.utils.datetime import _coerce_duration_to_int, _get_freq, infer_freq, set_hier_freq
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 2 for calling a global function with example usage: test_coerce_duration_to_int() without return types