code: def fromXML(self, name, attrs, content, ttFont):
      metricNames = set(
          sstruct.getformat(self.__class__.binaryFormat)[1]
      )
      for element in content:
          if not isinstance(element, tuple):
              continue
          name, attrs, content = element
          # Make sure this is a metric that is needed by GlyphMetrics.
          if name in metricNames:
              vars(self)[name] = safeEval(attrs["value"])
          else:
              log.warning(
                  "unknown name '%s' being ignored in %s.",
                  name,
                  self.__class__.__name__,
              )
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/BitmapGlyphMetrics.py
imports: from fontTools.misc import sstruct
  from fontTools.misc.textTools import safeEval
  import logging
label_desc: Use image node_id 2 for calling the BitmapGlyphMetrics obj's underlying member method code with example usage: obj.fromXML(name, attrs, content, ttFont) without return types