code: def test_apply_python_lambda(dtype, udf, testfunc):
      size = 500
  
      lhs_arr = np.random.random(size).astype(dtype)
      lhs_ser = Series(lhs_arr)
  
      out_ser = lhs_ser.apply(udf)
      result = testfunc(lhs_arr)
      np.testing.assert_almost_equal(result, out_ser.to_numpy())
  
imports: import numpy
  import pytest
  from cudf import Series
  from cudf.testing._utils import NUMERIC_TYPES
label_desc: Use image node_id 2 for calling a global function with example usage: test_apply_python_lambda(dtype, udf, testfunc) without return types