code: def test_AS_BAS_deprecated(
      self, freq_depr, expected_values, expected_freq
  ):
      # GH#55479
      freq_msg = re.split("[0-9]*", freq_depr, maxsplit=1)[1]
      msg = f"'{freq_msg}' is deprecated and will be removed in a future version."
  
      with tm.assert_produces_warning(FutureWarning, match=msg):
          expected = date_range(
              dt.datetime(2020, 12, 1),
              dt.datetime(2023, 12, 1),
              freq=freq_depr,
          )
      result = DatetimeIndex(
          expected_values,
          dtype="datetime64[ns]",
          freq=expected_freq,
      )
  
      tm.assert_index_equal(result, expected)
  
imports: import datetime
  from datetime import date
  import re
  import numpy
  import pytest
  from pandas.compat.numpy import np_long
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, Timestamp, date_range, offsets
  import pandas._testing
label_desc: Use image node_id 13 for calling the TestDatetimeIndex obj's underlying member method code with example usage: obj.test_AS_BAS_deprecated(freq_depr, expected_values, expected_freq) without return types