code: def test_dti_time2(self, dtype):
      # Regression test for GH#21267
      expected = np.array([time(10, 20, 30), NaT])
  
      index = DatetimeIndex(["2018-06-04 10:20:30", NaT], dtype=dtype)
      result = index.time
  
      tm.assert_numpy_array_equal(result, expected)
  
imports: import calendar
  from datetime import date, datetime, time
  import locale
  import unicodedata
  import numpy
  import pytest
  from pandas._libs.tslibs import timezones
  from pandas import DatetimeIndex, Index, NaT, Timestamp, date_range, offsets
  import pandas._testing
  from pandas.core.arrays import DatetimeArray
label_desc: Use image node_id 5 for calling the TestDatetimeIndexOps obj's underlying member method code with example usage: obj.test_dti_time2(dtype) without return types