code: def _get_sumo_net(cfg_file):
      """
      Returns sumo net.
  
      This method reads the sumo configuration file and retrieve the sumo net filename to create the
      net.
      """
      cfg_file = os.path.join(os.getcwd(), cfg_file)
  
      tree = ET.parse(cfg_file)
      tag = tree.find("//net-file")
      if tag is None:
          return None
  
      net_file = os.path.join(
          os.path.dirname(cfg_file), tag.get("value")
      )
      logging.debug("Reading net file: %s", net_file)
  
      sumo_net = traci.sumolib.net.readNet(net_file)
      return sumo_net
  
imports: import collections
  import enum
  import logging
  import os
  import carla
  import sumolib
  import traci
  from .constants import INVALID_ACTOR_ID
  import lxml.etree
label_desc: Use image node_id 1 for calling a global function with example usage: _get_sumo_net(cfg_file) and returns: sumo_net, None