code: def test_drop_duplicates_NA_for_take_all():
      # TODO: PANDAS 1.0 support - add ignore_index for
      # pandas drop_duplicates calls in this function.
  
      # none
      pdf = pd.DataFrame(
          {
              "A": [
                  None,
                  None,
                  "foo",
                  "bar",
                  "foo",
                  "baz",
                  "bar",
                  "qux",
              ],
              "C": [1.0, np.nan, np.nan, np.nan, 1.0, 2.0, 3, 1.0],
          }
      )
  
      df = cudf.DataFrame.from_pandas(pdf)
      # single column
      result = df.drop_duplicates("A")
      expected = pdf.iloc[[0, 2, 3, 5, 7]]
      assert_df(result, expected)
      assert_df(
          df.drop_duplicates("A", ignore_index=True),
          result.reset_index(drop=True),
      )
  
      result = df.drop_duplicates("A", keep="last")
      expected = pdf.iloc[[1, 4, 5, 6, 7]]
      assert_df(result, expected)
      assert_df(
          df.drop_duplicates("A", ignore_index=True, keep="last"),
          result.reset_index(drop=True),
      )
  
      result = df.drop_duplicates("A", keep=False)
      expected = pdf.iloc[[5, 7]]
      assert_df(result, expected)
      assert_df(
          df.drop_duplicates("A", ignore_index=True, keep=False),
          result.reset_index(drop=True),
      )
  
      # nan
  
      # single column
      result = df.drop_duplicates("C")
      expected = pdf.iloc[[0, 1, 5, 6]]
      assert_df(result, expected)
  
      result = df.drop_duplicates("C", keep="last")
      expected = pdf.iloc[[3, 5, 6, 7]]
      assert_df(result, expected)
  
      result = df.drop_duplicates("C", keep=False)
      expected = pdf.iloc[[5, 6]]
      assert_df(result, expected)
  
imports: import itertools
  import random
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import concat
  from cudf.testing._utils import _create_pandas_series_float64_default, assert_eq, assert_exceptions_equal
label_desc: Use image node_id 14 for calling a global function with example usage: test_drop_duplicates_NA_for_take_all() without return types