code: def test_get_buffers_with_validity_and_offsets() -> None:
      s = pl.Series(["a", "bc", None, "éâç"])
      col = PolarsColumn(s)
  
      out = col.get_buffers()
  
      data_buffer, data_dtype = out["data"]
      expected = pl.Series(
          [97, 98, 99, 195, 169, 195, 162, 195, 167], dtype=pl.UInt8
      )
      assert_series_equal(data_buffer._data, expected)
      assert data_dtype == (DtypeKind.STRING, 8, "U", "=")
  
      validity = out["validity"]
      assert validity is not None
      val_buffer, val_dtype = validity
      expected = pl.Series([True, True, False, True])
      assert_series_equal(val_buffer._data, expected)
      assert val_dtype == (DtypeKind.BOOL, 1, "b", "=")
  
      offsets = out["offsets"]
      assert offsets is not None
      offsets_buffer, offsets_dtype = offsets
      expected = pl.Series([0, 1, 3, 3, 9], dtype=pl.Int64)
      assert_series_equal(offsets_buffer._data, expected)
      assert offsets_dtype == (DtypeKind.INT, 64, "l", "=")
  
imports: from __future__ import annotations
  from datetime import datetime
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.interchange.column import PolarsColumn
  from polars.interchange.protocol import ColumnNullType, CopyNotAllowedError, DtypeKind
  from polars.testing import assert_series_equal
label_desc: Use image node_id 19 for calling a global function with example usage: test_get_buffers_with_validity_and_offsets() without return types