code: def get_8bit_texture(image):
      if image is None:
          return carla.TextureFloatColor(0, 0)
      height = len(image)
      width = len(image[0])
      texture = carla.TextureColor(width, height)
      for x in range(0, width):
          for y in range(0, height):
              color = image[y][x]
              r = int(color[0])
              g = int(color[1])
              b = int(color[2])
              a = int(color[3])
              texture.set(x, height - y - 1, carla.Color(r, g, b, a))
      return texture
  
file_path: carla/PythonAPI/util/apply_texture.py
imports: import glob
  import os
  import sys
  import argparse
  import math
  import time
  import queue
  import imageio
  import carla
label_desc: Use image node_id 1 for calling a global function with example usage: get_8bit_texture(image) and returns: texture, carla