code: def update(self, y, level):
      self.append(
          self.beta * (level[-1] - level[-2])
          + (1 - self.beta) * self[-1]
      )
  
imports: from __future__ import annotations
  import operator
  import statistics
  from collections import deque
  from river import time_series
label_desc: Use image node_id 2 for calling the Trend obj's underlying member method code with example usage: obj.update(y, level) without return types