code: def test_series_map_callable_numeric_random(nelem):
      # Generate data
      np.random.seed(0)
      data = np.random.random(nelem) * 100
  
      sr = Series(data)
      pdsr = pd.Series(data)
  
      # Call map
      got = sr.map(
          lambda x: (floor(x) + 1 if x - floor(x) >= 0.5 else floor(x))
      )
      expect = pdsr.map(
          lambda x: (floor(x) + 1 if x - floor(x) >= 0.5 else floor(x))
      )
  
      # Check
      assert_eq(expect, got, check_dtype=False)
  
file_path: cudf/python/cudf/cudf/tests/test_seriesmap.py
imports: from itertools import product
  from math import floor
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import Series
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_series_map_callable_numeric_random(nelem) without return types