code: def write_sumocfg_xml(
      cfg_file,
      net_file,
      vtypes_file,
      viewsettings_file,
      additional_traci_clients=0,
  ):
      """
      Writes sumo configuration xml file.
      """
      root = ET.Element("configuration")
  
      input_tag = ET.SubElement(root, "input")
      ET.SubElement(input_tag, "net-file", {"value": net_file})
      ET.SubElement(input_tag, "route-files", {"value": vtypes_file})
  
      gui_tag = ET.SubElement(root, "gui_only")
      ET.SubElement(
          gui_tag, "gui-settings-file", {"value": viewsettings_file}
      )
  
      ET.SubElement(
          root,
          "num-clients",
          {"value": str(additional_traci_clients + 1)},
      )
  
      tree = ET.ElementTree(root)
      tree.write(
          cfg_file,
          pretty_print=True,
          encoding="UTF-8",
          xml_declaration=True,
      )
  
file_path: carla/Co-Simulation/Sumo/spawn_npc_sumo.py
imports: import argparse
  import json
  import logging
  import random
  import re
  import shutil
  import tempfile
  import time
  import lxml.etree
  import glob
  import os
  import sys
  import sumolib
  import traci
  from sumo_integration.carla_simulation import CarlaSimulation
  from sumo_integration.sumo_simulation import SumoSimulation
  from run_synchronization import SimulationSynchronization
  from util.netconvert_carla import netconvert_carla
label_desc: Use image node_id 1 for calling a global function with example usage: write_sumocfg_xml(cfg_file, net_file, vtypes_file, viewsettings_file, additional_traci_clients) without return types