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