code: def test_all_models_can_handle_all_covariates(
      use_known_covariates,
      use_past_covariates,
      use_static_features_continuous,
      use_static_features_categorical,
      eval_metric,
  ):
      prediction_length = 5
      train_data, test_data = generate_train_and_test_data(
          prediction_length=prediction_length,
          use_known_covariates=use_known_covariates,
          use_past_covariates=use_past_covariates,
          use_static_features_continuous=use_static_features_continuous,
          use_static_features_categorical=use_static_features_categorical,
      )
  
      known_covariates_names = [
          col for col in train_data if col.startswith("known_")
      ]
  
      predictor = TimeSeriesPredictor(
          target=TARGET_COLUMN,
          prediction_length=prediction_length,
          known_covariates_names=known_covariates_names
          if len(known_covariates_names) > 0
          else None,
          eval_metric=eval_metric,
      )
      predictor.fit(train_data, hyperparameters=ALL_MODELS)
      predictor.evaluate(test_data)
      leaderboard = predictor.leaderboard(test_data)
  
      assert_leaderboard_contains_all_models(leaderboard)
  
      known_covariates = test_data.slice_by_timestep(
          -prediction_length, None
      )[known_covariates_names]
      predictions = predictor.predict(
          train_data, known_covariates=known_covariates
      )
  
      future_test_data = test_data.slice_by_timestep(
          -prediction_length, None
      )
  
      assert predictions.index.equals(future_test_data.index)
  
file_path: autogluon/timeseries/tests/smoketests/test_all_models.py
imports: from typing import Tuple
  import numpy
  import pandas
  import pytest
  from pkg_resources import parse_version
  from autogluon.timeseries import TimeSeriesPredictor
  from autogluon.timeseries.dataset.ts_dataframe import ITEMID, TIMESTAMP, TimeSeriesDataFrame
  from autogluon.timeseries.utils.datetime.seasonality import DEFAULT_SEASONALITIES
label_desc: Use image node_id 3 for calling a global function with example usage: test_all_models_can_handle_all_covariates(use_known_covariates, use_past_covariates, use_static_features_continuous, use_static_features_categorical, eval_metric) without return types