code: def test_rollling_series_numba_udf_basic(data, index, center):
      psr = _create_pandas_series_float64_default(data, index=index)
      gsr = cudf.from_pandas(psr)
  
      def some_func(A):
          b = 0
          for a in A:
              b = max(b, math.sqrt(a))
          return b
  
      for window_size in range(1, len(data) + 1):
          for min_periods in range(1, window_size + 1):
              assert_eq(
                  psr.rolling(window_size, min_periods, center)
                  .apply(some_func)
                  .fillna(-1),
                  gsr.rolling(window_size, min_periods, center)
                  .apply(some_func)
                  .fillna(-1),
                  check_dtype=False,
              )
  
imports: import math
  from contextlib import contextmanager
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.testing._utils import _create_pandas_series_float64_default, assert_eq
  from cudf.testing.dataset_generator import rand_dataframe
label_desc: Use image node_id 11 for calling a global function with example usage: test_rollling_series_numba_udf_basic(data, index, center) and returns: b