code: def render(self, display):
      if self._show_info:
          info_surface = pygame.Surface((220, self.dim[1]))
          info_surface.set_alpha(100)
          display.blit(info_surface, (0, 0))
          v_offset = 4
          bar_h_offset = 100
          bar_width = 106
          for item in self._info_text:
              text_color = (255, 255, 255)
              if v_offset + 18 > self.dim[1]:
                  break
              if isinstance(item, list):
                  if len(item) > 1:
                      points = [
                          (x + 8, v_offset + 8 + (1.0 - y) * 30)
                          for x, y in enumerate(item)
                      ]
                      pygame.draw.lines(
                          display, (255, 136, 0), False, points, 2
                      )
                  item = None
                  v_offset += 18
              elif isinstance(item, tuple):
                  if isinstance(item[1], bool):
                      rect = pygame.Rect(
                          (bar_h_offset, v_offset + 2), (10, 10)
                      )
                      pygame.draw.rect(
                          display,
                          (255, 255, 255),
                          rect,
                          0 if item[1] else 1,
                      )
                  else:
                      # draw allowed steering ranges
                      if len(item) == 6 and item[2] < 0.0:
                          for steering_range in item[5]:
                              starting_value = min(
                                  steering_range[0], steering_range[1]
                              )
                              length = (
                                  max(
                                      steering_range[0],
                                      steering_range[1],
                                  )
                                  - min(
                                      steering_range[0],
                                      steering_range[1],
                                  )
                              ) / 2
                              rect = pygame.Rect(
                                  (
                                      bar_h_offset
                                      + (starting_value + 1)
                                      * (bar_width / 2),
                                      v_offset + 2,
                                  ),
                                  (length * bar_width, 14),
                              )
                              pygame.draw.rect(
                                  display, (0, 255, 0), rect
                              )
  
                      # draw border
                      rect_border = pygame.Rect(
                          (bar_h_offset, v_offset + 2), (bar_width, 14)
                      )
                      pygame.draw.rect(
                          display, (255, 255, 255), rect_border, 1
                      )
  
                      # draw value / restricted value
                      input_value_rect_fill = 0
                      if len(item) >= 5:
                          if item[1] != item[4]:
                              input_value_rect_fill = 1
                              f = (item[4] - item[2]) / (
                                  item[3] - item[2]
                              )
                              if item[2] < 0.0:
                                  rect = pygame.Rect(
                                      (
                                          bar_h_offset
                                          + 1
                                          + f * (bar_width - 6),
                                          v_offset + 3,
                                      ),
                                      (12, 12),
                                  )
                              else:
                                  rect = pygame.Rect(
                                      (bar_h_offset + 1, v_offset + 3),
                                      (f * bar_width, 12),
                                  )
                              pygame.draw.rect(
                                  display, (255, 0, 0), rect
                              )
  
                      f = (item[1] - item[2]) / (item[3] - item[2])
                      rect = None
                      if item[2] < 0.0:
                          rect = pygame.Rect(
                              (
                                  bar_h_offset
                                  + 2
                                  + f * (bar_width - 14),
                                  v_offset + 4,
                              ),
                              (10, 10),
                          )
                      else:
                          if item[1] != 0:
                              rect = pygame.Rect(
                                  (bar_h_offset + 2, v_offset + 4),
                                  (f * (bar_width - 4), 10),
                              )
                      if rect:
                          pygame.draw.rect(
                              display,
                              (255, 255, 255),
                              rect,
                              input_value_rect_fill,
                          )
                  item = item[0]
              if item:  # At this point has to be a str.
                  surface = self._font_mono.render(
                      item, True, text_color
                  )
                  display.blit(surface, (8, v_offset))
              v_offset += 18
  
          self.rss_state_visualizer.render(display, v_offset)
      self._notifications.render(display)
      self.help.render(display)
  
imports: from __future__ import print_function
  import glob
  import os
  import sys
  import signal
  import carla
  from carla import ColorConverter
  import argparse
  import logging
  import math
  import random
  import weakref
  from rss_sensor import RssSensor
  from rss_visualization import RssUnstructuredSceneVisualizer, RssBoundingBoxVisualizer, RssStateVisualizer
label_desc: Use image node_id 7 for calling the HUD obj's underlying member method code with example usage: obj.render(display) without return types