code: def fromXML(self, name, attrs, content, ttFont):
      if name == "version":
          self.version = safeEval(attrs["value"])
      elif name == "ratRanges":
          if not hasattr(self, "ratRanges"):
              self.ratRanges = []
          for element in content:
              if not isinstance(element, tuple):
                  continue
              name, attrs, content = element
              if name == "ratRange":
                  if not hasattr(self, "numRatios"):
                      self.numRatios = 1
                  else:
                      self.numRatios += 1
                  ratio = {
                      "bCharSet": safeEval(attrs["bCharSet"]),
                      "xRatio": safeEval(attrs["xRatio"]),
                      "yStartRatio": safeEval(attrs["yStartRatio"]),
                      "yEndRatio": safeEval(attrs["yEndRatio"]),
                      "groupIndex": safeEval(attrs["groupIndex"]),
                  }
                  self.ratRanges.append(ratio)
      elif name == "groups":
          if not hasattr(self, "groups"):
              self.groups = []
          for element in content:
              if not isinstance(element, tuple):
                  continue
              name, attrs, content = element
              if name == "group":
                  if not hasattr(self, "numRecs"):
                      self.numRecs = 1
                  else:
                      self.numRecs += 1
                  group = {}
                  for element in content:
                      if not isinstance(element, tuple):
                          continue
                      name, attrs, content = element
                      if name == "record":
                          yPelHeight = safeEval(attrs["yPelHeight"])
                          yMax = safeEval(attrs["yMax"])
                          yMin = safeEval(attrs["yMin"])
                          group[yPelHeight] = (yMax, yMin)
                  self.groups.append(group)
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/V_D_M_X_.py
imports: from .None import DefaultTable
  from fontTools.misc import sstruct
  from fontTools.misc.textTools import safeEval
  import struct
label_desc: Use image node_id 5 for calling the table_V_D_M_X_ obj's underlying member method code with example usage: obj.fromXML(name, attrs, content, ttFont) without return types