code: def test_rank_error_arguments(pdf):
      gdf = DataFrame.from_pandas(pdf)
  
      assert_exceptions_equal(
          lfunc=pdf["col1"].rank,
          rfunc=gdf["col1"].rank,
          lfunc_args_and_kwargs=(
              [],
              {
                  "method": "randomname",
                  "na_option": "keep",
                  "ascending": True,
                  "pct": True,
              },
          ),
          rfunc_args_and_kwargs=(
              [],
              {
                  "method": "randomname",
                  "na_option": "keep",
                  "ascending": True,
                  "pct": True,
              },
          ),
      )
  
      assert_exceptions_equal(
          lfunc=pdf["col1"].rank,
          rfunc=gdf["col1"].rank,
          lfunc_args_and_kwargs=(
              [],
              {
                  "method": "first",
                  "na_option": "randomname",
                  "ascending": True,
                  "pct": True,
              },
          ),
          rfunc_args_and_kwargs=(
              [],
              {
                  "method": "first",
                  "na_option": "randomname",
                  "ascending": True,
                  "pct": True,
              },
          ),
      )
  
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 3 for calling a global function with example usage: test_rank_error_arguments(pdf) without return types