code: def write_vtype_xml(filename, vtypes):
      """
      Write route xml file.
      """
      root = ET.Element("routes")
  
      root.addprevious(
          ET.Comment(
              "generated on {date:%Y-%m-%d %H:%M:%S} by {script:}".format(
                  date=datetime.datetime.now(),
                  script=os.path.basename(__file__),
              )
          )
      )
  
      for vtype in vtypes:
          ET.SubElement(root, "vType", vtype)
  
      tree = ET.ElementTree(root)
      tree.write(
          filename,
          pretty_print=True,
          encoding="UTF-8",
          xml_declaration=True,
      )
  
file_path: carla/Co-Simulation/Sumo/util/create_sumo_vtypes.py
imports: import argparse
  import glob
  import datetime
  import json
  import logging
  import os
  import sys
  import lxml.etree
  import carla
label_desc: Use image node_id 1 for calling a global function with example usage: write_vtype_xml(filename, vtypes) without return types