code: def test_rank_random_series() -> None:
      s = pl.Series("a", [1, 2, 3, 2, 2, 3, 0])
      assert_series_equal(
          s.rank("random", seed=1),
          pl.Series("a", [2, 4, 7, 3, 5, 6, 1], dtype=pl.UInt32),
      )
  
file_path: polars/py-polars/tests/unit/operations/test_random.py
imports: from __future__ import annotations
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_rank_random_series() without return types