code: def test_datetime(unit, tz):
      dt_arr = [dt(2007, 7, 13), dt(2007, 7, 14), None]
      table = pa.table(
          {"A": pa.array(dt_arr, type=pa.timestamp(unit, tz=tz))}
      )
      col = table.__dataframe__().get_column_by_name("A")
  
      assert col.size() == 3
      assert col.offset == 0
      assert col.null_count == 1
      assert col.dtype[0] == DtypeKind.DATETIME
      assert col.describe_null == (ColumnNullType.USE_BITMASK, 0)
  
imports: from datetime import datetime
  import numpy
  import pyarrow
  from pyarrow.vendored.version import Version
  import pytest
  import pyarrow.interchange
  from pyarrow.interchange.column import _PyArrowColumn, ColumnNullType, DtypeKind
  from pyarrow.interchange.from_dataframe import _from_dataframe
label_desc: Use image node_id 1 for calling a global function with example usage: test_datetime(unit, tz) without return types