code: def test_series_rank_combinations(elem, dtype):
      np.random.seed(0)
      aa = np.fromiter(chain.from_iterable(elem), np.float64).astype(
          dtype
      )
      gdf = DataFrame()
      df = pd.DataFrame()
      gdf["a"] = aa
      df["a"] = aa
      ranked_gs = gdf["a"].rank(method="first")
      ranked_ps = df["a"].rank(method="first")
      # Check
      assert_eq(ranked_ps, ranked_gs)
  
file_path: cudf/python/cudf/cudf/tests/test_rank.py
imports: from itertools import chain, combinations_with_replacement, product
  import numpy
  import pandas
  import pytest
  from cudf import DataFrame
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_series_rank_combinations(elem, dtype) without return types