code: def test_asarray_tz_aware(self):
      tz = "US/Central"
      ser = Series(date_range("2000", periods=2, tz=tz))
      expected = np.array(
          ["2000-01-01T06", "2000-01-02T06"], dtype="M8[ns]"
      )
      result = np.asarray(ser, dtype="datetime64[ns]")
  
      tm.assert_numpy_array_equal(result, expected)
  
      # Old behavior with no warning
      result = np.asarray(ser, dtype="M8[ns]")
  
      tm.assert_numpy_array_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas.core.dtypes.dtypes import DatetimeTZDtype
  import pandas
  from pandas import CategoricalIndex, Series, Timedelta, Timestamp, date_range
  import pandas._testing
  from pandas.core.arrays import DatetimeArray, IntervalArray, NumpyExtensionArray, PeriodArray, SparseArray, TimedeltaArray
  from pandas.core.arrays.string_arrow import ArrowStringArrayNumpySemantics
label_desc: Use image node_id 3 for calling the TestAsArray obj's underlying member method code with example usage: obj.test_asarray_tz_aware() without return types