code: def test_times_array(self, times_frame):
      # GH 40951
      halflife = "23 days"
      times = times_frame.pop("C")
      gb = times_frame.groupby("A")
      result = gb.ewm(halflife=halflife, times=times).mean()
      expected = gb.ewm(halflife=halflife, times=times.values).mean()
      tm.assert_frame_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timestamp, date_range, to_datetime
  import pandas._testing
  from pandas.api.indexers import BaseIndexer
  from pandas.core.groupby.groupby import get_groupby
label_desc: Use image node_id 4 for calling the TestEWM obj's underlying member method code with example usage: obj.test_times_array(times_frame) without return types