code: def __delitem__(self, key):
      if isinstance(key, tuple):
          # key is a tuple, del kernpair
          del self._kerning[key]
      else:
          # del char metrics
          del self._chars[key]
  
imports: import re
label_desc: Use image node_id 20 for calling the AFM obj's underlying member method code with example usage: obj.__delitem__(key) without return types