code: def prune_configs(configs, ignored_keys=[]):
      """Prunes the input list of configurations
  
      Args:
          configs (list): A list of configuration dictionaries.
          ignored_keys (list, optional): the keys of the sections to delete. Defaults to [].
  
      Returns:
          A list of valid and unique configuration dictionaries.
      """
      pruned_list = []
      for config in configs:
          prune_config(config, ignored_keys)
          pruned_list.append(config)
  
      return remove_dupe_dicts(pruned_list)
  
imports: import re
  import collections.abc
  import os
  import json
  from deepspeed.runtime.constants import GRADIENT_ACCUMULATION_STEPS, TRAIN_MICRO_BATCH_SIZE_PER_GPU
  import itertools
  import copy
  from ..utils import logger
label_desc: Use image node_id 15 for calling a global function with example usage: prune_configs(configs, ignored_keys) and returns: remove_dupe_dicts