code: def fit(self, series: TimeSeries):
      super().fit(series)
      raise_if_not(
          series.is_deterministic,
          "This model expects deterministic time series",
          logger,
      )
  
      self.rolling_window = series[-self.input_chunk_length :].values(
          copy=False
      )
      return self
  
imports: from typing import List, Optional, Sequence, Union
  import numpy
  from darts.logging import get_logger, raise_if, raise_if_not
  from darts.models.forecasting.ensemble_model import EnsembleModel
  from darts.models.forecasting.forecasting_model import ForecastingModel, LocalForecastingModel
  from darts.timeseries import TimeSeries
label_desc: Use image node_id 5 for calling the NaiveMovingAverage obj's underlying member method code with example usage: obj.fit(series) and returns: self