code: def test_set_tbl_rows() -> None:
      df = pl.DataFrame(
          {"a": [1, 2, 3, 4], "b": [5, 6, 7, 8], "c": [9, 10, 11, 12]}
      )
      ser = pl.Series("ser", [1, 2, 3, 4, 5])
  
      pl.Config.set_tbl_rows(0)
      assert (
          str(df) == "shape: (4, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│ a   ┆ b   ┆ c   │\n"
          "│ --- ┆ --- ┆ --- │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│ …   ┆ …   ┆ …   │\n"
          "└─────┴─────┴─────┘"
      )
      assert (
          str(ser) == "shape: (5,)\n"
          "Series: 'ser' [i64]\n"
          "[\n"
          "\t…\n"
          "]"
      )
  
      pl.Config.set_tbl_rows(1)
      assert (
          str(df) == "shape: (4, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│ a   ┆ b   ┆ c   │\n"
          "│ --- ┆ --- ┆ --- │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│ 1   ┆ 5   ┆ 9   │\n"
          "│ …   ┆ …   ┆ …   │\n"
          "└─────┴─────┴─────┘"
      )
      assert (
          str(ser) == "shape: (5,)\n"
          "Series: 'ser' [i64]\n"
          "[\n"
          "\t1\n"
          "\t…\n"
          "]"
      )
  
      pl.Config.set_tbl_rows(2)
      assert (
          str(df) == "shape: (4, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│ a   ┆ b   ┆ c   │\n"
          "│ --- ┆ --- ┆ --- │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│ 1   ┆ 5   ┆ 9   │\n"
          "│ …   ┆ …   ┆ …   │\n"
          "│ 4   ┆ 8   ┆ 12  │\n"
          "└─────┴─────┴─────┘"
      )
      assert (
          str(ser) == "shape: (5,)\n"
          "Series: 'ser' [i64]\n"
          "[\n"
          "\t1\n"
          "\t…\n"
          "\t5\n"
          "]"
      )
  
      pl.Config.set_tbl_rows(3)
      assert (
          str(df) == "shape: (4, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│ a   ┆ b   ┆ c   │\n"
          "│ --- ┆ --- ┆ --- │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│ 1   ┆ 5   ┆ 9   │\n"
          "│ 2   ┆ 6   ┆ 10  │\n"
          "│ 3   ┆ 7   ┆ 11  │\n"
          "│ 4   ┆ 8   ┆ 12  │\n"
          "└─────┴─────┴─────┘"
      )
      assert (
          str(ser) == "shape: (5,)\n"
          "Series: 'ser' [i64]\n"
          "[\n"
          "\t1\n"
          "\t…\n"
          "\t4\n"
          "\t5\n"
          "]"
      )
  
      pl.Config.set_tbl_rows(4)
      assert (
          str(df) == "shape: (4, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│ a   ┆ b   ┆ c   │\n"
          "│ --- ┆ --- ┆ --- │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│ 1   ┆ 5   ┆ 9   │\n"
          "│ 2   ┆ 6   ┆ 10  │\n"
          "│ 3   ┆ 7   ┆ 11  │\n"
          "│ 4   ┆ 8   ┆ 12  │\n"
          "└─────┴─────┴─────┘"
      )
      assert (
          str(ser) == "shape: (5,)\n"
          "Series: 'ser' [i64]\n"
          "[\n"
          "\t1\n"
          "\t2\n"
          "\t3\n"
          "\t4\n"
          "\t5\n"
          "]"
      )
  
      df = pl.DataFrame(
          {
              "a": [1, 2, 3, 4, 5],
              "b": [6, 7, 8, 9, 10],
              "c": [11, 12, 13, 14, 15],
          }
      )
  
      pl.Config.set_tbl_rows(3)
      assert (
          str(df) == "shape: (5, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│ a   ┆ b   ┆ c   │\n"
          "│ --- ┆ --- ┆ --- │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│ 1   ┆ 6   ┆ 11  │\n"
          "│ …   ┆ …   ┆ …   │\n"
          "│ 4   ┆ 9   ┆ 14  │\n"
          "│ 5   ┆ 10  ┆ 15  │\n"
          "└─────┴─────┴─────┘"
      )
  
      pl.Config.set_tbl_rows(-1)
      assert (
          str(ser) == "shape: (5,)\n"
          "Series: 'ser' [i64]\n"
          "[\n"
          "\t1\n"
          "\t2\n"
          "\t3\n"
          "\t4\n"
          "\t5\n"
          "]"
      )
  
      pl.Config.set_tbl_hide_dtype_separator(True)
      assert (
          str(df) == "shape: (5, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│ a   ┆ b   ┆ c   │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│ 1   ┆ 6   ┆ 11  │\n"
          "│ 2   ┆ 7   ┆ 12  │\n"
          "│ 3   ┆ 8   ┆ 13  │\n"
          "│ 4   ┆ 9   ┆ 14  │\n"
          "│ 5   ┆ 10  ┆ 15  │\n"
          "└─────┴─────┴─────┘"
      )
  
imports: from __future__ import annotations
  import os
  from pathlib import Path
  from typing import Any, Iterator
  import pytest
  import polars
  import polars.polars
  from polars.config import _POLARS_CFG_ENV_VARS
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_tbl_rows() without return types