code: def _check_start_end_array(
      start_idxs: np.ndarray, end_idxs: np.ndarray
  ):
      """Check if the start and end indices are valid.
  
      These are valid if they are of the same length and if the start indices are smaller
      than the end indices.
  
      Parameters
      ----------
      start_idxs: np.ndarray
          The start indices.
      end_idxs: np.ndarray
          The end indices.
      """
      assert len(start_idxs) == len(
          end_idxs
      ), "start_idxs and end_ixs must have equal length"
      assert np.all(
          start_idxs <= end_idxs
      ), "for all corresponding values: segment_start_idxs <= segment_end_idxs"
  
file_path: tsflex/tsflex/features/utils.py
imports: from typing import Any, Callable, List, Optional, Tuple, Union
  import numpy
  import pandas
  from .function_wrapper import FuncWrapper, _get_name
label_desc: Use image node_id 2 for calling a global function with example usage: _check_start_end_array(start_idxs, end_idxs) without return types