code: def test_dti_tz_localize_ambiguous_nat(self, tz):
      times = [
          "11/06/2011 00:00",
          "11/06/2011 01:00",
          "11/06/2011 01:00",
          "11/06/2011 02:00",
          "11/06/2011 03:00",
      ]
      di = DatetimeIndex(times)
      localized = di.tz_localize(tz, ambiguous="NaT")
  
      times = [
          "11/06/2011 00:00",
          np.nan,
          np.nan,
          "11/06/2011 02:00",
          "11/06/2011 03:00",
      ]
      di_test = DatetimeIndex(times, tz="US/Eastern")
  
      # left dtype is datetime64[ns, US/Eastern]
      # right is datetime64[ns, tzfile('/usr/share/zoneinfo/US/Eastern')]
      tm.assert_numpy_array_equal(di_test.values, localized.values)
  
imports: from datetime import datetime, timedelta
  import dateutil.tz
  from dateutil.tz import gettz
  import numpy
  import pytest
  import pytz
  from pandas import DatetimeIndex, Timestamp, bdate_range, date_range, offsets, to_datetime
  import pandas._testing
label_desc: Use image node_id 14 for calling the TestTZLocalize obj's underlying member method code with example usage: obj.test_dti_tz_localize_ambiguous_nat(tz) without return types