code: def remove(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)
      dupe_ct = int(duplicates.sum())
      if not dupe_ct:
          raise NoDuplicatesException()
      if dupe_ct == len(df):
          raise RemoveAllDataException("This will remove all data!")
      df = df[~duplicates].reset_index(drop=True)
      code = self._build_code()
      return df, code
  
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 3 for calling the RemoveDuplicateRows obj's underlying member method code with example usage: obj.remove(df) and returns: df,  code