code: def process_xml(xml_handle, output_handle):
      soup = BeautifulSoup(xml_handle, "xml")
      for segment in soup.find_all("segment"):
          who = segment["who"]
          starttime = segment["starttime"]
          endtime = segment["endtime"]
          WMER = segment["WMER"]
          text = " ".join(
              [
                  element.string
                  for element in segment.find_all("element")
                  if element.string is not None
              ]
          )
          output_handle.write(
              "{} {} {} {} {}\n".format(
                  who, starttime, endtime, WMER, text
              )
          )
      xml_handle.close()
      output_handle.close()
  
imports: import argparse
  import sys
  from bs4 import BeautifulSoup
label_desc: Use image node_id 2 for calling a global function with example usage: process_xml(xml_handle, output_handle) without return types