code: def test_dataframe_nlargest_nsmallest(nelem, n, op, columns):
      np.random.seed(0)
      aa = np.random.random(nelem)
      bb = np.random.random(nelem)
  
      df = DataFrame({"a": aa, "b": bb})
      pdf = df.to_pandas()
      assert_eq(
          getattr(df, op)(n, columns), getattr(pdf, op)(n, columns)
      )
  
imports: import string
  from itertools import product
  import numpy
  import pandas
  import pytest
  from cudf import DataFrame, Series
  from cudf.core.column import NumericalColumn
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 9 for calling a global function with example usage: test_dataframe_nlargest_nsmallest(nelem, n, op, columns) without return types