code: def test_non_array_raises(self):
      depr_msg = "DatetimeArray.__init__ is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=depr_msg):
          with pytest.raises(ValueError, match="list"):
              DatetimeArray([1, 2, 3])
  
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 7 for calling the TestDatetimeArrayConstructor obj's underlying member method code with example usage: obj.test_non_array_raises() without return types