def METHOD_NAME():
    primitive_instance = ExponentialWeightedAverage(halflife=2.7)
    primitive_func = primitive_instance.get_function()
    array = pd.Series([1, 2, 7, 5])
    answer = pd.Series(primitive_func(array))
    correct_answer = pd.Series(
        [1.0, 1.563830114594977, 3.8556233149044865, 4.2592901785684205],
    )
    pd.testing.assert_series_equal(answer, correct_answer)