code: def _check_inputs(
      start_values, end_values, feature_name, start_range, end_range
  ):
      """Check ranges of all inputs to be valid.
  
      It checks input intervals (start_values and end_values) to see whether it is
      in the specified ranges (start_range, end_range) or not.
  
      Parameters
      ----------
      start_values : int
          start time in the interval
      end_values : int
          end time in the interval
      feature_name : str
          checks the start and end ranges for all of feature names (e.g., "peak_hour")
      start_range : int
          valid start range
      end_range : int
          valid end range
  
      Raises
      ------
      ValueError
          Raise an error if start or end values are not in the specified
          start_range and end_range
      """
      if start_values is None or end_values is None:
          return
      for start, end in zip(start_values, end_values):
          if start is not None and (
              start < start_range or start > end_range
          ):
              raise ValueError(
                  f"Invalid {feature_name}_start value: {start}. It should be between"
                  f" {start_range} and {end_range}."
              )
          if end is not None and (end < start_range or end > end_range):
              raise ValueError(
                  f"Invalid {feature_name}_end value: {end}. It should be between"
                  f" {start_range} and {end_range}."
              )
          if start > end:
              raise ValueError(
                  f"Invalid {feature_name}_end value: {end}. It must be "
                  f"greater than start_value (or equal): {start} "
              )
  
file_path: sktime/sktime/transformations/series/peak.py
imports: import pandas
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 3 for calling a global function with example usage: _check_inputs(start_values, end_values, feature_name, start_range, end_range) without return types