code: def test_array_repeat() -> None:
      dtype = pl.Array(pl.UInt8, width=1)
      s = pl.repeat([42], n=3, dtype=dtype, eager=True)
      expected = pl.Series("repeat", [[42], [42], [42]], dtype=dtype)
      assert s.dtype == dtype
      assert_series_equal(s, expected)
  
file_path: polars/py-polars/tests/unit/datatypes/test_array.py
imports: import datetime
  from typing import Any
  import pytest
  import polars
  from polars.exceptions import InvalidOperationError
  from polars.testing import assert_series_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_array_repeat() without return types