code: def extreme_lags(
      self,
  ) -> Tuple[
      Optional[int],
      Optional[int],
      Optional[int],
      Optional[int],
      Optional[int],
      Optional[int],
  ]:
      min_target_lag = (
          self.lags["target"][0] if "target" in self.lags else None
      )
      max_target_lag = self.output_chunk_length - 1
      min_past_cov_lag = (
          self.lags["past"][0] if "past" in self.lags else None
      )
      max_past_cov_lag = (
          self.lags["past"][-1] if "past" in self.lags else None
      )
      min_future_cov_lag = (
          self.lags["future"][0] if "future" in self.lags else None
      )
      max_future_cov_lag = (
          self.lags["future"][-1] if "future" in self.lags else None
      )
      return (
          min_target_lag,
          max_target_lag,
          min_past_cov_lag,
          max_past_cov_lag,
          min_future_cov_lag,
          max_future_cov_lag,
      )
  
imports: from collections import OrderedDict
  from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
  import numpy
  import pandas
  from sklearn.linear_model import LinearRegression
  from darts.logging import get_logger, raise_if, raise_if_not, raise_log
  from darts.models.forecasting.forecasting_model import GlobalForecastingModel
  from darts.timeseries import TimeSeries
  from darts.utils.data.tabularization import add_static_covariates_to_lagged_data, create_lagged_component_names, create_lagged_training_data
  from darts.utils.historical_forecasts import _check_optimizable_historical_forecasts_global_models, _optimized_historical_forecasts_all_points, _optimized_historical_forecasts_last_points_only, _process_historical_forecast_input
  from darts.utils.multioutput import MultiOutputRegressor
  from darts.utils.utils import _check_quantiles, get_single_series, seq2series, series2seq
label_desc: Use image node_id 5 for calling the RegressionModel obj's underlying member method code with example usage: obj.extreme_lags() and returns: min_target_lag,  max_target_lag,  min_past_cov_lag,  max_past_cov_lag,  min_future_cov_lag,  max_future_cov_lag