code: def _retrieve_options(list_waypoints, current_waypoint):
      """
      Compute the type of connection between the current active waypoint and the multiple waypoints present in
      list_waypoints. The result is encoded as a list of RoadOption enums.
  
      :param list_waypoints: list with the possible target waypoints in case of multiple options
      :param current_waypoint: current active waypoint
      :return: list of RoadOption enums representing the type of connection from the active waypoint to each
               candidate in list_waypoints
      """
      options = []
      for next_waypoint in list_waypoints:
          # this is needed because something we are linking to
          # the beggining of an intersection, therefore the
          # variation in angle is small
          next_next_waypoint = next_waypoint.next(3.0)[0]
          link = _compute_connection(
              current_waypoint, next_next_waypoint
          )
          options.append(link)
  
      return options
  
imports: from enum import IntEnum
  from collections import deque
  import random
  import carla
  from agents.navigation.controller import VehiclePIDController
  from agents.tools.misc import draw_waypoints, get_speed
label_desc: Use image node_id 1 for calling a global function with example usage: _retrieve_options(list_waypoints, current_waypoint) and returns: options