class_docstr: Wrapper for forecasting models.
  
  This provides a unified API for the forecast method.
  Additionally, this wrapper knows how to work with models from
  certain packages such as AzureML and sktime.
  Other models are expected to have a forecast method that takes
  a DataFrame with the time series ID features and time feature.
class_docstr_tok: ["Wrapper","for","forecasting","models",".","This","provides","a","unified","API","for","the","forecast","method",".","Additionally",",","this","wrapper","knows","how","to","work","with","models","from","certain","packages","such","as","AzureML","and","sktime",".","Other","models","are","expected","to","have","a","forecast","method","that","takes","a","DataFrame","with","the","time","series","ID","features","and","time","feature","."]
docstr: Ensures that time and time series ID features are present.
docstr_tok: ["Ensures","that","time","and","time","series","ID","features","are","present","."]
code: def _validate_time_features(
      self, time_feature, time_series_id_features
  ):
      """Ensures that time and time series ID features are present."""
      if time_feature not in self._examples.columns:
          raise ValueError(
              "The passed time_feature is not in the examples DataFrame."
          )
      self._time_feature = time_feature
      for ts_id in time_series_id_features:
          if ts_id not in self._examples.columns:
              raise ValueError(
                  f"The passed time series ID feature {ts_id} is not "
                  "in the examples DataFrame."
              )
      self._time_feature = time_feature
      self._time_series_id_features = time_series_id_features
  
file_path: responsible-ai-toolbox/responsibleai/responsibleai/_internal/_forecasting_wrappers.py
imports: import inspect
  import sys
  import pandas
  from ml_wrappers.model.base_wrapped_model import BaseWrappedModel
  from raiutils.models import Forecasting, ModelTask
label_desc: Use image node_id 2 for calling the _WrappedForecastingModel obj's underlying member method code with example usage: obj._validate_time_features(time_feature, time_series_id_features) without return types