code: def test_from_pandas_array(self):
      arr = pd.array(np.arange(5, dtype=np.int64)) * 3600 * 10**9
  
      result = DatetimeArray._from_sequence(
          arr, dtype="M8[ns]"
      )._with_freq("infer")
  
      expected = pd.date_range("1970-01-01", periods=5, freq="h")._data
      tm.assert_datetime_array_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas._libs import iNaT
  from pandas.core.dtypes.dtypes import DatetimeTZDtype
  import pandas
  import pandas._testing
  from pandas.core.arrays import DatetimeArray
label_desc: Use image node_id 5 for calling the TestDatetimeArrayConstructor obj's underlying member method code with example usage: obj.test_from_pandas_array() without return types