code: def pygame_save(display, path: str, name: str = None):
      if name is None:
          name = "image-" + str(datetime.datetime.now()) + ".jpg"
  
      thread = threading.Thread(
          target=lambda: pygame.image.save(
              display, os.path.join(path, name)
          )
      )
      thread.start()
  
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 6 for calling a global function with example usage: pygame_save(display, path, name) without return types