code: def main():
      args = parse_args()
      verbose = args.verbose
      build_log_path = os.path.expandvars(args.build_log)
      links = parse_log(build_log_path, verbose=verbose)
  
      if args.xml_out_path:
          output_path = os.path.expandvars(args.xml_out_path)
          create_xml_file(links, output_path, verbose=verbose)
      if args.print:
          print_invocation_results(links)
  
file_path: tensorflow/ci/official/utilities/extract_resultstore_links.py
imports: import argparse
  import datetime
  import os
  import re
  from typing import Dict, Union
  import xml.etree.ElementTree
label_desc: Use image node_id 6 for calling a global function with example usage: main() without return types