code: def test_prediction_intervals(params):
      pred_ints_params = PredictionIntervalsParams(
          number_mutations=80,
          bpq_number_models="max",
          show_progress=False,
      )
      for x in [
          "mutation_of_best_pipeline",
          "best_pipelines_quantiles",
      ]:
          pred_ints = PredictionIntervals(
              model=params["model"],
              method=x,
              horizon=20,
              params=pred_ints_params,
          )
          pred_ints.fit(params["train_input"])
          res = pred_ints.forecast()
  
          int_score = interval_score(
              params["ts_test"], low=res["low_int"], up=res["up_int"]
          )
          int_picp = picp(
              params["ts_test"], low=res["low_int"], up=res["up_int"]
          )
  
          assert (
              int_score <= 100
          ), f"Too big interval_score of prediction intervals for {x}."
          assert (
              int_picp >= 0.3
          ), f"Too small prediction interval coverage probability of prediction intervals for {x}."
  
file_path: FEDOT/test/unit/pipelines/prediction_intervals/test_prediction_intervals.py
imports: import pickle
  import numpy
  import pytest
  from fedot.core.data.data import InputData
  from fedot.core.pipelines.prediction_intervals.main import PredictionIntervals
  from fedot.core.pipelines.prediction_intervals.metrics import interval_score, picp
  from fedot.core.pipelines.prediction_intervals.params import PredictionIntervalsParams
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import TsForecastingParams, Task, TaskTypesEnum
  from fedot.core.utils import fedot_project_root
label_desc: Use image node_id 2 for calling a global function with example usage: test_prediction_intervals(params) without return types