code: def test_ewma_times_not_same_length():
      msg = "times must be the same length as the object."
      with pytest.raises(ValueError, match=msg):
          Series(range(5)).ewm(
              times=np.arange(4).astype("datetime64[ns]")
          )
  
imports: import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Series, date_range
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_ewma_times_not_same_length() without return types