code: def test_nans_stats(data, ops, skipna):
      psr = _create_pandas_series_float64_default(data)
      gsr = _create_cudf_series_float64_default(data, nan_as_null=False)
  
      assert_eq(
          getattr(psr, ops)(skipna=skipna),
          getattr(gsr, ops)(skipna=skipna),
      )
  
      gsr = _create_cudf_series_float64_default(data, nan_as_null=False)
      # Since there is no concept of `nan_as_null` in pandas,
      # nulls will be returned in the operations. So only
      # testing for `skipna=True` when `nan_as_null=False`
      assert_eq(
          getattr(psr, ops)(skipna=True), getattr(gsr, ops)(skipna=True)
      )
  
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 20 for calling a global function with example usage: test_nans_stats(data, ops, skipna) without return types