docstr: Test `SingleEncoder.encode_inference()`
docstr_tok: ["Test","`","SingleEncoder.encode_inference","(",")","`"]
code: def helper_test_encoder_single_inference(
      self,
      encoder: SingleEncoder,
      n: int,
      target: Sequence[TimeSeries],
      covariates: Sequence[Optional[TimeSeries]],
      result: Sequence[TimeSeries],
      merge_covariates: bool = True,
  ):
      """Test `SingleEncoder.encode_inference()`"""
  
      encoded, encoded_train_inf = [], []
      for ts, cov in zip(target, covariates):
          encoded.append(
              encoder.encode_inference(
                  n, ts, cov, merge_covariates=merge_covariates
              )
          )
          encoded_train_inf.append(
              encoder.encode_train_inference(
                  n, ts, cov, merge_covariates=merge_covariates
              )
          )
      assert encoded == result
      for enc, enc_train_inf in zip(encoded, encoded_train_inf):
          assert enc == enc_train_inf[enc.time_index]
  
imports: import copy
  from typing import Optional, Sequence
  import numpy
  import pandas
  import pytest
  from darts import TimeSeries
  from darts.dataprocessing.encoders import FutureCallableIndexEncoder, FutureCyclicEncoder, FutureDatetimeAttributeEncoder, FutureIntegerIndexEncoder, PastCallableIndexEncoder, PastCyclicEncoder, PastDatetimeAttributeEncoder, PastIntegerIndexEncoder, SequentialEncoder
  from darts.dataprocessing.encoders.encoder_base import PastCovariatesIndexGenerator, SingleEncoder
  from darts.dataprocessing.encoders.encoders import CallableIndexEncoder, CyclicTemporalEncoder, DatetimeAttributeEncoder, IntegerIndexEncoder
  from darts.dataprocessing.transformers import Scaler
  from darts.logging import get_logger, raise_log
  from darts.utils import timeseries_generation
label_desc: Use image node_id 16 for calling the TestEncoder obj's underlying member method code with example usage: obj.helper_test_encoder_single_inference(encoder, n, target, covariates, result, merge_covariates) without return types