code: def run_ewm(self, weighted_avg, deltas, min_periods, ewm_func):
      result, old_wt = ewm_func(
          weighted_avg,
          deltas,
          min_periods,
          self.old_wt_factor,
          self.new_wt,
          self.old_wt,
          self.adjust,
          self.ignore_na,
      )
      self.old_wt = old_wt
      self.last_ewm = result[-1]
      return result
  
file_path: pandas/pandas/core/window/online.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import numpy
  from pandas.compat._optional import import_optional_dependency
label_desc: Use image node_id 2 for calling the EWMMeanState obj's underlying member method code with example usage: obj.run_ewm(weighted_avg, deltas, min_periods, ewm_func) and returns: result