code: def parsekernpair(self, rest):
      m = kernRE.match(rest)
      if m is None:
          raise error("syntax error in AFM file: " + repr(rest))
      things = []
      for fr, to in m.regs[1:]:
          things.append(rest[fr:to])
      leftchar, rightchar, value = things
      value = int(value)
      self._kerning[(leftchar, rightchar)] = value
  
imports: import re
label_desc: Use image node_id 4 for calling the AFM obj's underlying member method code with example usage: obj.parsekernpair(rest) without return types