def METHOD_NAME(code):
    results = funcregex.findall(code)
    if results:
        # We'll fake the ptAttribs being all alone in a module...
        assigns = ast.parse("\n".join(results))
        v = PlasmaAttributeVisitor()
        v.visit(assigns)
        if v._attributes:
            return v._attributes
    return {}