<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fromstring(text):
 """Create a SVG figure from a string. Parameters text : str string representing the SVG content. Must be valid SVG. Returns ------- SVGFigure newly created :py:class:`SVGFigure` initialised with the string content. """

    fig = SVGFigure()
    svg = etree.fromstring(text.encode())

    fig.root = svg

    return fig