code: def pubdev_drop_duplicates():
      df = DataFrame(
          {
              "AAA": [
                  "foo",
                  "bar",
                  "foo",
                  "bar",
                  "foo",
                  "bar",
                  "bar",
                  "foo",
              ],
              "B": [
                  "one",
                  "one",
                  "two",
                  "two",
                  "two",
                  "two",
                  "one",
                  "two",
              ],
              "C": [1, 1, 2, 2, 2, 2, 1, 2],
              "D": range(8),
          }
      )
  
      h2o_df = h2o.H2OFrame(df)
      # single column
      result = h2o_df.drop_duplicates(["AAA"]).as_data_frame()
      expected = df[:2]
      assert_frame_equal(result, expected)
  
      result = h2o_df.drop_duplicates(
          ["AAA"], keep="last"
      ).as_data_frame()
      expected = df.loc[[6, 7]].reset_index(
          drop=True
      )  # Index has to be re-set, as H2O treats it differently
      assert_frame_equal(result, expected)
  
      # multi column
      expected = df.loc[[0, 1, 2, 3]].reset_index(drop=True)
      result = h2o_df.drop_duplicates(["AAA", "B"]).as_data_frame()
      assert_frame_equal(result, expected)
      result = h2o_df.drop_duplicates(["AAA", "B"]).as_data_frame()
      assert_frame_equal(result, expected)
  
      result = h2o_df.drop_duplicates(
          ["AAA", "B"], keep="last"
      ).as_data_frame()
      expected = df.loc[[0, 5, 6, 7]].reset_index(drop=True)
      assert_frame_equal(result, expected)
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from pandas import DataFrame
  from pandas.util.testing import assert_frame_equal
label_desc: Use image node_id 1 for calling a global function with example usage: pubdev_drop_duplicates() without return types