code: def apply_rows(
      df, func, incols, outcols, kwargs, pessimistic_nulls, cache_key
  ):
      """Row-wise transformation
  
      Parameters
      ----------
      {params}
      """
      applyrows = ApplyRowsCompiler(
          func,
          incols,
          outcols,
          kwargs,
          pessimistic_nulls,
          cache_key=cache_key,
      )
      return applyrows.run(df)
  
imports: import functools
  from typing import Any, Dict
  import cupy
  from numba import cuda
  from numba.core.utils import pysignature
  import cudf
  from cudf import _lib
  from cudf.core.buffer import acquire_spill_lock
  from cudf.core.column import column
  from cudf.utils import utils
  from cudf.utils._numba import _CUDFNumbaConfig
  from cudf.utils.docutils import docfmt_partial
label_desc: Use image node_id 1 for calling a global function with example usage: apply_rows(df, func, incols, outcols, kwargs, pessimistic_nulls, cache_key) and returns: applyrows