code: def test_offset_of_sliced_array():
      arr = pa.array([1, 2, 3, 4])
      arr_sliced = arr.slice(2, 2)
  
      table = pa.table([arr], names=["arr"])
      table_sliced = pa.table([arr_sliced], names=["arr_sliced"])
  
      col = table_sliced.__dataframe__().get_column(0)
      assert col.offset == 2
  
      result = _from_dataframe(table_sliced.__dataframe__())
      assert table_sliced.equals(result)
      assert not table.equals(result)
  
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 3 for calling a global function with example usage: test_offset_of_sliced_array() without return types