code: def test_array_of_dt64_nat_raises(self):
      # GH#39462
      nat = np.datetime64("NaT", "ns")
      arr = np.array([nat], dtype=object)
  
      msg = "Invalid type for timedelta scalar"
      with pytest.raises(TypeError, match=msg):
          TimedeltaIndex(arr)
  
      with pytest.raises(TypeError, match=msg):
          TimedeltaArray._from_sequence(arr, dtype="m8[ns]")
  
      with pytest.raises(TypeError, match=msg):
          to_timedelta(arr)
  
imports: from datetime import timedelta
  import numpy
  import pytest
  import pandas
  from pandas import Timedelta, TimedeltaIndex, timedelta_range, to_timedelta
  import pandas._testing
  from pandas.core.arrays.timedeltas import TimedeltaArray
label_desc: Use image node_id 2 for calling the TestTimedeltaIndex obj's underlying member method code with example usage: obj.test_array_of_dt64_nat_raises() without return types