code: def test_dropna_series(data, nulls, inplace):
      psr = _create_pandas_series_float64_default(data)
  
      if len(data) > 0:
          if nulls == "one":
              p = np.random.randint(0, 4)
              psr[p] = None
          elif nulls == "some":
              p1, p2 = np.random.randint(0, 4, (2,))
              psr[p1] = None
              psr[p2] = None
          elif nulls == "all":
              psr[:] = None
  
      gsr = cudf.from_pandas(psr)
  
      check_dtype = True
      if gsr.null_count == len(gsr):
          check_dtype = False
  
      expected = psr.dropna()
      actual = gsr.dropna()
  
      if inplace:
          expected = psr
          actual = gsr
  
      assert_eq(expected, actual, check_dtype=check_dtype)
  
file_path: cudf/python/cudf/cudf/tests/test_dropna.py
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing._utils import _create_pandas_series_float64_default, assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: test_dropna_series(data, nulls, inplace) without return types