def METHOD_NAME(xml_output):
    try:
        tree = ET.fromstring(xml_output)
    except SyntaxError as err:
        print(f'SyntaxError In xml: {err}. {xml_output}')
        return None
    return tree