code: def ts_jumps(ts: np.array):
      """This function computes maximal upswing and downswing of a time series."""
  
      ts_diff = np.diff(ts)
      return {"up": np.max(ts_diff), "low": np.min(ts_diff)}
  
file_path: FEDOT/fedot/core/pipelines/prediction_intervals/utils.py
imports: import numpy
  from typing import List
  from fedot.core.pipelines.ts_wrappers import fitted_values
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot import Fedot
  from fedot.core.data.data import InputData
  from golem.core.optimisers.opt_history_objects.individual import Individual
  from fedot.core.pipelines.prediction_intervals.params import PredictionIntervalsParams
  from fedot.core.pipelines.prediction_intervals.graph_distance import get_distance_between
label_desc: Use image node_id 5 for calling a global function with example usage: ts_jumps(ts) and returns: dict