def parse(svg, cached=False, _copy=True):
if not cached:<EOL><INDENT>dom = parser.parseString(svg)<EOL>paths = parse_node(dom, [])<EOL><DEDENT>else:<EOL><INDENT>id = _cache.id(svg)<EOL>if not _cache.has_key(id):<EOL><INDENT>dom = parser.parseString(svg)<EOL>_cache.save(id, parse_node(dom, []))<EOL><DEDENT>paths = _cache.load(id, _copy)<EOL><DEDENT>return paths<EOL>
Returns cached copies unless otherwise specified.