code: def _determine_bounds(
      bound_method, series_list: List[pd.Series]
  ) -> Tuple[Any, Any]:
      """Determine the bounds of the passed series.
  
      Parameters
      ----------
      bound_method: str
  
      series_list : List[pd.Series]
          The list of series for which the bounds are determined.
  
      Returns
      -------
      Tuple[pd.Timestamp, pd.Timestamp]
          The start & end timestamp, respectively.
  
      """
      if bound_method == "inner":
          latest_start = series_list[0].index[0]
          earliest_stop = series_list[0].index[-1]
          for series in series_list[1:]:
              latest_start = max(latest_start, series.index[0])
              earliest_stop = min(earliest_stop, series.index[-1])
          return latest_start, earliest_stop
      elif bound_method == "inner-outer":
          latest_start = series_list[0].index[0]
          latest_stop = series_list[0].index[-1]
          for series in series_list[1:]:
              latest_start = max(latest_start, series.index[0])
              latest_stop = max(latest_stop, series.index[-1])
          return latest_start, latest_stop
      elif bound_method == "outer":
          earliest_start = series_list[0].index[0]
          latest_stop = series_list[0].index[-1]
          for series in series_list[1:]:
              earliest_start = min(earliest_start, series.index[0])
              latest_stop = max(latest_stop, series.index[-1])
          return earliest_start, latest_stop
      else:
          raise ValueError(
              f"invalid bound method string passed {bound_method}"
          )
  
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 1 for calling a global function with example usage: _determine_bounds(bound_method, series_list) and returns: latest_start,  earliest_stop, latest_start,  latest_stop, earliest_start,  latest_stop