code: def prune_config(config, ignored_keys=[]):
      """Prunes the input configurations
  
      Args:
          configs (dict): A configuration dictionary.
          ignored_keys (list, optional): the keys of the sections to delete. Defaults to [].
  
      Returns:
          A configuration dictionary.
      """
      if ignored_keys:
          for k in ignored_keys:
  
              def find_del_key(d: dict, k: str):
                  if k in d:
                      del d[k]
                  else:
                      for dd in d.values():
                          if isinstance(dd, dict):
                              find_del_key(dd, k)
  
              find_del_key(config, k)
  
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 14 for calling a global function with example usage: prune_config(config, ignored_keys) without return types