code: def test_kurtosis_series(data, null_flag, numeric_only):
      pdata = data.to_pandas()
  
      if null_flag and len(data) > 2:
          data.iloc[[0, 2]] = None
          pdata.iloc[[0, 2]] = None
  
      got = data.kurtosis(numeric_only=numeric_only)
      got = got if np.isscalar(got) else got.to_numpy()
      expected = pdata.kurtosis(numeric_only=numeric_only)
      np.testing.assert_array_almost_equal(got, expected)
  
      got = data.kurt(numeric_only=numeric_only)
      got = got if np.isscalar(got) else got.to_numpy()
      expected = pdata.kurt(numeric_only=numeric_only)
      np.testing.assert_array_almost_equal(got, expected)
  
imports: from concurrent.futures import ThreadPoolExecutor
  import cupy
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.datasets import randomdata
  from cudf.testing._utils import _create_cudf_series_float64_default, _create_pandas_series_float64_default, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 12 for calling a global function with example usage: test_kurtosis_series(data, null_flag, numeric_only) without return types