code: def write_image(frame, id, buffer):
      # Save the image using Pillow module.
      img = Image.fromarray(buffer)
      img.save("_out/%s_%06d.png" % (id, frame))
  
imports: import glob
  import os
  import sys
  import math
  import argparse
  import copy
  import time
  from multiprocessing import Pool
  from PIL import Image
  import carla
  import random
label_desc: Use image node_id 10 for calling a global function with example usage: write_image(frame, id, buffer) without return types