code: def test_array_to_pyarrowcolumn(test_data, kind):
      arr = pa.array(test_data)
      arr_column = _PyArrowColumn(arr)
  
      assert arr_column._col == arr
      assert arr_column.size() == len(test_data)
      assert arr_column.dtype[0] == kind
      assert arr_column.num_chunks() == 1
      assert arr_column.null_count == 0
      assert arr_column.get_buffers()["validity"] is None
      assert len(list(arr_column.get_chunks())) == 1
  
      for chunk in arr_column.get_chunks():
          assert chunk == arr_column
  
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 2 for calling a global function with example usage: test_array_to_pyarrowcolumn(test_data, kind) without return types