code: def fromXML(self, name, attrs, content, ttFont):
      if not hasattr(self, "metrics"):
          self.metrics = {}
      if name == "mtx":
          self.metrics[attrs["name"]] = (
              safeEval(attrs[self.advanceName]),
              safeEval(attrs[self.sideBearingName]),
          )
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/_h_m_t_x.py
imports: from fontTools.misc.roundTools import otRound
  from fontTools import ttLib
  from fontTools.misc.textTools import safeEval
  from .None import DefaultTable
  import sys
  import struct
  import array
  import logging
label_desc: Use image node_id 4 for calling the table__h_m_t_x obj's underlying member method code with example usage: obj.fromXML(name, attrs, content, ttFont) without return types