code: def test_nested_sliced() -> None:
      for df in [
          pl.Series([[1, 2], [3, 4], [5, 6]]).slice(2, 2).to_frame(),
          pl.Series([[None, 2], [3, 4], [5, 6]]).to_frame(),
          pl.Series([[None, 2], [3, 4], [5, 6]]).slice(2, 2).to_frame(),
          pl.Series([["a", "a"], ["", "a"], ["c", "de"]])
          .slice(3, 2)
          .to_frame(),
          pl.Series([[None, True], [False, False], [True, True]])
          .slice(2, 2)
          .to_frame(),
      ]:
          f = io.BytesIO()
          df.write_parquet(f)
          f.seek(0)
          assert_frame_equal(pl.read_parquet(f), df)
  
imports: from __future__ import annotations
  import io
  from datetime import datetime, time, timezone
  from decimal import Decimal
  from typing import TYPE_CHECKING
  import numpy
  import pandas
  import pyarrow
  import pyarrow.dataset
  import pyarrow.parquet
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 18 for calling a global function with example usage: test_nested_sliced() without return types