code: def pdf():
      return pd.DataFrame(
          {
              "col1": np.array([5, 4, 3, 5, 8, 5, 2, 1, 6, 6]),
              "col2": np.array(
                  [5, 4, np.nan, 5, 8, 5, np.inf, np.nan, 6, -np.inf]
              ),
          },
          index=np.array([5, 4, 3, 2, 1, 6, 7, 8, 9, 10]),
      )
  
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 1 for calling a global function with example usage: pdf() and returns: pd