code: def test_where_doesnt_retain_freq(self):
      dti = date_range("20130101", periods=3, freq="D", name="idx")
      cond = [True, True, False]
      expected = DatetimeIndex(
          [dti[0], dti[1], dti[0]], freq=None, name="idx"
      )
  
      result = dti.where(cond, dti[::-1])
      tm.assert_index_equal(result, expected)
  
imports: from datetime import date, datetime, time, timedelta
  import numpy
  import pytest
  from pandas._libs import index
  from pandas.compat.numpy import np_long
  import pandas
  from pandas import DatetimeIndex, Index, Timestamp, bdate_range, date_range, notna
  import pandas._testing
  from pandas.tseries.frequencies import to_offset
label_desc: Use image node_id 1 for calling the TestWhere obj's underlying member method code with example usage: obj.test_where_doesnt_retain_freq() without return types