code: def test_from_arrow_from_empty(unit, tz):
      pa = pytest.importorskip("pyarrow")
  
      data = []
      arr = pa.array(data)
      dtype = DatetimeTZDtype(unit=unit, tz=tz)
  
      result = dtype.__from_arrow__(arr)
      expected = DatetimeArray._from_sequence(
          np.array(data, dtype=f"datetime64[{unit}]")
      )
      expected = expected.tz_localize(tz=tz)
      tm.assert_extension_array_equal(result, expected)
  
      result = dtype.__from_arrow__(pa.chunked_array([arr]))
      tm.assert_extension_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 2 for calling a global function with example usage: test_from_arrow_from_empty(unit, tz) without return types