code: def test_dataframe_ewm_agg(setup):
      np.random.seed(0)
  
      raw = pd.DataFrame(
          {
              "a": np.random.randint(100, size=(10,)),
              "b": np.random.rand(10),
              "c": np.random.randint(100, size=(10,)),
              "d": ["c" * i for i in np.random.randint(4, size=10)],
          }
      )
      raw.b[0:3] = np.nan
      raw.b[5:7] = np.nan
      raw.b[9] = np.nan
  
      df = md.DataFrame(raw, chunk_size=(10, 3))
  
      r = df.ewm(alpha=0.5).agg("mean")
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.ewm(alpha=0.5).agg("mean")
      )
  
      r = df.ewm(alpha=0.5).agg(["mean"])
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.ewm(alpha=0.5).agg(["mean"])
      )
  
      df = md.DataFrame(raw, chunk_size=(3, 3))
  
      aggs = ["mean", "var", "std"]
  
      for fun_name in aggs:
          r = df.ewm(alpha=0.3).agg(fun_name)
          pd.testing.assert_frame_equal(
              r.execute().fetch(), raw.ewm(alpha=0.3).agg(fun_name)
          )
  
          r = df.ewm(alpha=0.3, ignore_na=True).agg(fun_name)
          pd.testing.assert_frame_equal(
              r.execute().fetch(),
              raw.ewm(alpha=0.3, ignore_na=True).agg(fun_name),
          )
  
      r = df.ewm(alpha=0.3).agg("mean")
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.ewm(alpha=0.3).agg("mean")
      )
  
      r = df.ewm(alpha=0.3).agg(["mean"])
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.ewm(alpha=0.3).agg(["mean"])
      )
  
      r = df.ewm(alpha=0.3).agg(aggs)
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.ewm(alpha=0.3).agg(aggs)
      )
  
      agg_dict = {"c": "mean"}
      r = df.ewm(alpha=0.3).agg(agg_dict)
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.ewm(alpha=0.3).agg(agg_dict)
      )
  
      agg_dict = OrderedDict([("a", ["mean", "var"]), ("b", "var")])
      r = df.ewm(alpha=0.3).agg(agg_dict)
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.ewm(alpha=0.3).agg(agg_dict)
      )
  
      r = df.ewm(alpha=0.3, min_periods=0).agg(aggs)
      pd.testing.assert_frame_equal(
          r.execute().fetch(),
          raw.ewm(alpha=0.3, min_periods=0).agg(aggs),
      )
  
      r = df.ewm(alpha=0.3, min_periods=2).agg(aggs)
      pd.testing.assert_frame_equal(
          r.execute().fetch(),
          raw.ewm(alpha=0.3, min_periods=2).agg(aggs),
      )
  
      agg_dict = OrderedDict(
          [("a", ["mean", "var"]), ("b", "var"), ("c", "mean")]
      )
      r = df.ewm(alpha=0.3, min_periods=2).agg(agg_dict)
      pd.testing.assert_frame_equal(
          r.execute().fetch(),
          raw.ewm(alpha=0.3, min_periods=2).agg(agg_dict),
      )
  
imports: from collections import OrderedDict
  import numpy
  import pandas
  from .....None import dataframe
label_desc: Use image node_id 1 for calling a global function with example usage: test_dataframe_ewm_agg(setup) without return types