code: def check(self, df):
      subset, keep = (self.cfg.get(p) for p in ["subset", "keep"])
      dupe_args = {"keep": False if keep == "none" else keep}
      duplicates = df.duplicated(subset, **dupe_args)
      removed = int(duplicates.sum())
      total = len(df)
      return dict(
          removed=removed, total=total, remaining=total - removed
      )
  
imports: import pandas
  import dtale.global_state
  from dtale.query import run_query
  from dtale.utils import dict_merge, grid_columns, grid_formatter, triple_quote
  from dtale.charts.utils import build_group_inputs_filter
label_desc: Use image node_id 2 for calling the RemoveDuplicateRows obj's underlying member method code with example usage: obj.check(df) and returns: dict