code: def compare_dataset_deduplication(dataPath, columns, keep):
      print(dataPath)
      data = h2o.import_file(pyunit_utils.locate(dataPath))
      deduplicated_frame = data.drop_duplicates(
          columns=columns, keep=keep
      )
  
      data_pd = data.as_data_frame()
      deduplicated_frame_pd = data_pd.drop_duplicates(
          subset=columns, keep=keep
      )
      deduplicated_frame_pd.reset_index(drop=True, inplace=True)
      assert_frame_equal(
          deduplicated_frame_pd, deduplicated_frame.as_data_frame()
      )
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from pandas.util.testing import assert_frame_equal
label_desc: Use image node_id 2 for calling a global function with example usage: compare_dataset_deduplication(dataPath, columns, keep) without return types