code: def test_select_columns_from_buffer(stream: bool) -> None:
      df = pl.DataFrame(
          {
              "a": [1, 2, 3],
              "b": [True, False, True],
              "c": ["a", "b", "c"],
          }
      )
      expected = pl.DataFrame(
          {"b": [True, False, True], "c": ["a", "b", "c"]}
      )
  
      f = io.BytesIO()
      write_ipc(df, stream, f)
      f.seek(0)
  
      read_df = read_ipc(
          stream, f, columns=["b", "c"], use_pyarrow=False
      )
      assert_frame_equal(expected, read_df)
  
imports: from __future__ import annotations
  import io
  from typing import TYPE_CHECKING, Any
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_select_columns_from_buffer(stream) without return types