code: def alpha_to_color(img, alpha_color=(255, 255, 255)):
      if len(img.shape) == 3 and img.shape[2] == 4:
          B, G, R, A = cv2.split(img)
          alpha = A / 255
  
          R = (alpha_color[0] * (1 - alpha) + R * alpha).astype(
              np.uint8
          )
          G = (alpha_color[1] * (1 - alpha) + G * alpha).astype(
              np.uint8
          )
          B = (alpha_color[2] * (1 - alpha) + B * alpha).astype(
              np.uint8
          )
  
          img = cv2.merge((B, G, R))
      return img
  
imports: import logging
  import os
  import imghdr
  import cv2
  import random
  import numpy
  import paddle
  import importlib.util
  import sys
  import subprocess
label_desc: Use image node_id 6 for calling a global function with example usage: alpha_to_color(img, alpha_color) and returns: img