code: def test_series_slice(
      srs: pl.Series,
      start: int | None,
      stop: int | None,
      step: int | None,
  ) -> None:
      py_data = srs.to_list()
  
      s = slice(start, stop, step)
      sliced_py_data = py_data[s]
      sliced_pl_data = srs[s].to_list()
  
      assert (
          sliced_py_data == sliced_pl_data
      ), f"slice [{start}:{stop}:{step}] failed"
      assert_series_equal(srs, srs, check_exact=True)
  
file_path: polars/py-polars/tests/parametric/test_series.py
imports: from __future__ import annotations
  from typing import Any
  from hypothesis import given, settings
  from hypothesis.strategies import booleans, floats, sampled_from
  import polars
  from polars.expr.expr import _prepare_alpha
  from polars.testing import assert_series_equal
  from polars.testing.parametric import series
label_desc: Use image node_id 5 for calling a global function with example usage: test_series_slice(srs, start, stop, step) without return types