code: def get_image_as_array(image):
      array = np.frombuffer(image.raw_data, dtype=np.dtype("uint8"))
      array = np.reshape(array, (image.height, image.width, 4))
      array = array[:, :, :3]
      array = array[:, :, ::-1]
      # make the array writeable doing a deep copy
      array2 = copy.deepcopy(array)
      return array2
  
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 2 for calling a global function with example usage: get_image_as_array(image) and returns: array2