code: def test_cross_join_slice_pushdown() -> None:
      # this will likely go out of memory if we did not pushdown the slice
      df = (
          pl.Series(
              "x",
              pl.arange(0, 2**16 - 1, eager=True, dtype=pl.UInt16)
              % 2**15,
          )
      ).to_frame()
  
      result = (
          df.lazy()
          .join(df.lazy(), how="cross", suffix="_")
          .slice(-5, 10)
          .collect()
      )
      expected = pl.DataFrame(
          {
              "x": [32766, 32766, 32766, 32766, 32766],
              "x_": [32762, 32763, 32764, 32765, 32766],
          },
          schema={"x": pl.UInt16, "x_": pl.UInt16},
      )
      assert_frame_equal(result, expected)
  
      result = (
          df.lazy()
          .join(df.lazy(), how="cross", suffix="_")
          .slice(2, 10)
          .collect()
      )
      expected = pl.DataFrame(
          {
              "x": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              "x_": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
          },
          schema={"x": pl.UInt16, "x_": pl.UInt16},
      )
  
file_path: polars/py-polars/tests/benchmark/test_release.py
imports: import time
  from pathlib import Path
  from typing import cast
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_cross_join_slice_pushdown() without return types