code: def del_if_exists(t, d):
      """Deletes a key from a dictionary if it exists.
  
      Args:
          t (string): target key to delete
          d (dict): dictionary to delete from
      """
      if t in d:
          del d[t]
          return
      for k, v in d.items():
          if isinstance(v, collections.abc.Mapping):
              del_if_exists(t, v)
  
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 7 for calling a global function with example usage: del_if_exists(t, d) without return types