code: def remove(self, df):
      group = self.cfg.get("group")
      duplicates = [g for _, g in df.groupby(group) if len(g) > 1]
      if not duplicates:
          raise NoDuplicatesToShowException("No duplicates to show!")
      duplicates = pd.concat(duplicates)
      group_filter = None
      if self.cfg.get("filter"):
          group_filter, _ = build_group_inputs_filter(
              df,
              [
                  {
                      col: val
                      for col, val in zip(group, self.cfg["filter"])
                  }
              ],
          )
          duplicates = run_query(duplicates, group_filter)
      code = self._build_code(group_filter)
      return duplicates, 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 ShowDuplicates obj's underlying member method code with example usage: obj.remove(df) and returns: duplicates,  code