code: def test_roundtrip_pyarrow_boolean_midbyte_slice() -> None:
      s = pl.Series("a", [False] * 9)[3:]
      df = s.to_frame()
      dfi = df.__dataframe__()
  
      df_pa = pa.interchange.from_dataframe(dfi)
      result: pl.DataFrame = pl.from_arrow(df_pa)  # type: ignore[assignment]
  
      assert_frame_equal(result, df)
  
file_path: polars/py-polars/tests/unit/interchange/test_roundtrip.py
imports: from __future__ import annotations
  import pandas
  import pyarrow
  import pyarrow.interchange
  import pytest
  from hypothesis import given
  import polars
  from polars.testing import assert_frame_equal
  from polars.testing.parametric import dataframes
label_desc: Use image node_id 7 for calling a global function with example usage: test_roundtrip_pyarrow_boolean_midbyte_slice() without return types