docstr: Generates/extracts time index (or integer index) for covariates at model inference / prediction time.
  
  Parameters
  ----------
  n
      The forecasting horizon.
  target
      The target TimeSeries used during training or passed to prediction as `series`.
  covariates
      Optionally, the covariates used for prediction.
      If given, the returned time index is equal to the `covariates` time index. Else, the returned time index
      covers the minimum required covariate time spans for performing inference / prediction with a specific
      forecasting model. These requirements are derived from parameters set at :class:`CovariatesIndexGenerator`
      creation.
docstr_tok: ["Generates\/extracts","time","index","(","or","integer","index",")","for","covariates","at","model","inference","\/","prediction","time",".","Parameters","--","--","--","--","--","n","The","forecasting","horizon",".","target","The","target","TimeSeries","used","during","training","or","passed","to","prediction","as","`","series","`",".","covariates","Optionally",",","the","covariates","used","for","prediction",".","If","given",",","the","returned","time","index","is","equal","to","the","`","covariates","`","time","index",".","Else",",","the","returned","time","index","covers","the","minimum","required","covariate","time","spans","for","performing","inference","\/","prediction","with","a","specific","forecasting","model",".","These","requirements","are","derived","from","parameters","set","at",":","class",":","`","CovariatesIndexGenerator","`","creation","."]
code: def generate_inference_idx(
      self,
      n: int,
      target: TimeSeries,
      covariates: Optional[TimeSeries] = None,
  ) -> Tuple[SupportedIndex, pd.Timestamp]:
      """
      Generates/extracts time index (or integer index) for covariates at model inference / prediction time.
  
      Parameters
      ----------
      n
          The forecasting horizon.
      target
          The target TimeSeries used during training or passed to prediction as `series`.
      covariates
          Optionally, the covariates used for prediction.
          If given, the returned time index is equal to the `covariates` time index. Else, the returned time index
          covers the minimum required covariate time spans for performing inference / prediction with a specific
          forecasting model. These requirements are derived from parameters set at :class:`CovariatesIndexGenerator`
          creation.
      """
      pass
  
imports: from abc import ABC, abstractmethod
  from typing import List, Optional, Sequence, Tuple, Union
  import numpy
  import pandas
  from darts import TimeSeries
  from darts.dataprocessing.transformers import FittableDataTransformer
  from darts.logging import get_logger, raise_if, raise_log
  from darts.utils.timeseries_generation import generate_index
label_desc: Use image node_id 3 for calling the CovariatesIndexGenerator obj's underlying member method code with example usage: obj.generate_inference_idx(n, target, covariates) without return types