class_docstr: Parse SVG ``path`` elements from a file or string, and draw them
  onto a glyph object that supports the FontTools Pen protocol.
  
  For example, reading from an SVG file and drawing to a Defcon Glyph:
  
      import defcon
      glyph = defcon.Glyph()
      pen = glyph.getPen()
      svg = SVGPath("path/to/a.svg")
      svg.draw(pen)
  
  Or reading from a string containing SVG data, using the alternative
  'fromstring' (a class method):
  
      data = '<?xml version="1.0" ...'
      svg = SVGPath.fromstring(data)
      svg.draw(pen)
  
  Both constructors can optionally take a 'transform' matrix (6-float
  tuple, or a FontTools Transform object) to modify the draw output.
code: def fromstring(cls, data, transform=None):
      self = cls(transform=transform)
      self.root = etree.fromstring(data)
      return self
  
file_path: catboost/contrib/python/fonttools/fontTools/svgLib/path/__init__.py
imports: from fontTools.pens.transformPen import TransformPen
  from fontTools.misc import etree
  from fontTools.misc.textTools import tostr
  from .parser import parse_path
  from .shapes import PathBuilder
label_desc: Use image node_id 2 for calling the SVGPath obj's underlying member method code with example usage: obj.fromstring(cls, data, transform) and returns: self