def METHOD_NAME(input_path):
    global glob_header_to_thread, glob_xml_comment
    with open(input_path, "r") as input_file:
        # take all the lines up to <dxl:Thread from the original input file
        # and also save any XML-style comments <!-- blabla -->
        in_xml_comment = False
        for input_line in input_file:
            if re.search(r'<dxl:Thread ', input_line):
                return
            glob_header_to_thread += input_line
            if re.search(r'<!--', input_line):
                in_xml_comment = True
            if in_xml_comment:
                glob_xml_comment += input_line
            if in_xml_comment and re.search(r'-->', input_line):
                in_xml_comment = False