code: def convert(args):
      # Read the .osm data
      with open(args.input_path, mode="r", encoding="utf-8") as osmFile:
          osm_data = osmFile.read()
  
      # Define the desired settings
      settings = carla.Osm2OdrSettings()
  
      # Set OSM road types to export to OpenDRIVE
      settings.set_osm_way_types(
          [
              "motorway",
              "motorway_link",
              "trunk",
              "trunk_link",
              "primary",
              "primary_link",
              "secondary",
              "secondary_link",
              "tertiary",
              "tertiary_link",
              "unclassified",
              "residential",
          ]
      )
      settings.default_lane_width = args.lane_width
      settings.generate_traffic_lights = args.traffic_lights
      settings.all_junctions_with_traffic_lights = (
          args.all_junctions_lights
      )
      settings.center_map = args.center_map
  
      # Convert to .xodr
      xodr_data = carla.Osm2Odr.convert(osm_data, settings)
  
      # save opendrive file
      with open(args.output_path, "w", encoding="utf-8") as xodrFile:
          xodrFile.write(xodr_data)
  
imports: import argparse
  import glob
  import os
  import sys
  import carla
label_desc: Use image node_id 1 for calling a global function with example usage: convert(args) without return types