code: def display_image(
      display, image, window_size=(800, 600), blend=False
  ):
      """Displays the given image on a pygame window
      :param blend: whether to blend or not the given image.
      :param window_size: the size of the pygame's window. Default is (800, 600)
      :param display: pygame.display
      :param image: the image (numpy.array) to display/render on.
      """
      # Resize image if necessary
      if (image.shape[1], image.shape[0]) != window_size:
          image = resize(image, size=window_size)
  
      image_surface = pygame.surfarray.make_surface(
          image.swapaxes(0, 1)
      )
  
      if blend:
          image_surface.set_alpha(100)
  
      display.blit(image_surface, (0, 0))
  
imports: import os
  import cv2
  import math
  import random
  import numpy
  import carla
  import pygame
  import threading
  import datetime
  from typing import Union
  from tensorforce.agents import Agent
label_desc: Use image node_id 4 for calling a global function with example usage: display_image(display, image, window_size, blend) without return types