code: def test_array_func_cudf_series(np_ar, func):
      cudf_ser = cudf.Series(np_ar)
      expect = func(np_ar)
      got = func(cudf_ser)
      if np.isscalar(expect):
          assert_eq(expect, got)
      else:
          assert_eq(expect, got.to_numpy())
  
file_path: cudf/python/cudf/cudf/tests/test_array_function.py
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: test_array_func_cudf_series(np_ar, func) without return types