class_docstr: A filter which removes the last `n` time steps from a time series.
code: def __call__(self, items: List[Item]) -> List[Item]:
      return [
          {
              **item,
              FieldName.TARGET: item[FieldName.TARGET][
                  : -self.prediction_length
              ],
          }
          for item in items
      ]
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict, List
  import numpy
  from gluonts.dataset.field_names import FieldName
label_desc: Use image node_id 2 for calling the EndOfSeriesCutFilter obj's underlying member method code with example usage: obj.__call__(items) and returns: unknown