code: def test_ignorena_true_avg():
      primitive_instance = ExponentialWeightedAverage(
          com=0.5, ignore_na=True
      )
      primitive_func = primitive_instance.get_function()
      array = pd.Series([1, 2, 7, np.nan, 5])
      answer = pd.Series(primitive_func(array))
      correct_answer = pd.Series(
          [1.0, 1.75, 5.384615384615384, 5.384615384615384, 5.125],
      )
      pd.testing.assert_series_equal(answer, correct_answer)
  
imports: import numpy
  import pandas
  from featuretools.primitives import ExponentialWeightedAverage, ExponentialWeightedSTD, ExponentialWeightedVariance
label_desc: Use image node_id 6 for calling a global function with example usage: test_ignorena_true_avg() without return types