code: def test_repeat(
      value: Any,
      n: int,
      dtype: pl.PolarsDataType,
      expected_dtype: pl.PolarsDataType,
  ) -> None:
      expected = pl.Series("repeat", [value] * n).cast(expected_dtype)
  
      result_eager = pl.repeat(value, n=n, dtype=dtype, eager=True)
      assert_series_equal(result_eager, expected)
  
      result_lazy = pl.select(
          pl.repeat(value, n=n, dtype=dtype, eager=False)
      ).to_series()
      assert_series_equal(result_lazy, expected)
  
file_path: polars/py-polars/tests/unit/functions/test_repeat.py
imports: from __future__ import annotations
  from datetime import date, datetime, time, timedelta
  from typing import Any
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_repeat(value, n, dtype, expected_dtype) without return types