code: def test_future_index_generator_local(self):
      # test model agnostic scenario (also for LocalForecastingModels)
      freq = self.target_time.freq
      target = self.target_time
  
      idxg = FutureCovariatesIndexGenerator()
      idx, _ = idxg.generate_train_idx(target=target, covariates=None)
      assert idx.equals(target.time_index)
      idx, _ = idxg.generate_train_idx(
          target=target, covariates=self.cov_time_train
      )
      assert idx.equals(self.cov_time_train.time_index)
  
      n = 10
      idx, _ = idxg.generate_inference_idx(
          n=n, target=target, covariates=None
      )
      assert idx.freq == freq
      assert idx[0] == target.end_time() + 1 * freq
      assert idx[-1] == target.end_time() + n * freq
  
      idx, _ = idxg.generate_inference_idx(
          n=n, target=target, covariates=self.cov_int_inf_short
      )
      assert idx.equals(self.cov_int_inf_short.time_index)
  
file_path: darts/darts/tests/dataprocessing/encoders/test_covariate_index_generators.py
imports: import numpy
  import pandas
  import pytest
  from darts import TimeSeries
  from darts.dataprocessing.encoders.encoder_base import CovariatesIndexGenerator, FutureCovariatesIndexGenerator, PastCovariatesIndexGenerator
  from darts.logging import get_logger
  from darts.utils import timeseries_generation
label_desc: Use image node_id 11 for calling the TestCovariatesIndexGenerator obj's underlying member method code with example usage: obj.test_future_index_generator_local() without return types