code: def add_fog(img, fog_coef, alpha_coef, haze_list):
      """Add fog to the image.
  
      From https://github.com/UjjwalSaxena/Automold--Road-Augmentation-Library
  
      Args:
          img (numpy.ndarray): Image.
          fog_coef (float): Fog coefficient.
          alpha_coef (float): Alpha coefficient.
          haze_list (list):
  
      Returns:
          numpy.ndarray: Image.
  
      """
      non_rgb_warning(img)
  
      input_dtype = img.dtype
      needs_float = False
  
      if input_dtype == np.float32:
          img = from_float(img, dtype=np.dtype("uint8"))
          needs_float = True
      elif input_dtype not in (np.uint8, np.float32):
          raise ValueError(
              "Unexpected dtype {} for RandomFog augmentation".format(
                  input_dtype
              )
          )
  
      width = img.shape[1]
  
      hw = max(int(width // 3 * fog_coef), 10)
  
      for haze_points in haze_list:
          x, y = haze_points
          overlay = img.copy()
          output = img.copy()
          alpha = alpha_coef * fog_coef
          rad = hw // 2
          point = (x + hw // 2, y + hw // 2)
          cv2.circle(overlay, point, int(rad), (255, 255, 255), -1)
          cv2.addWeighted(overlay, alpha, output, 1 - alpha, 0, output)
  
          img = output.copy()
  
      image_rgb = cv2.blur(img, (hw // 10, hw // 10))
  
      if needs_float:
          image_rgb = to_float(image_rgb, max_value=255)
  
      return image_rgb
  
imports: from __future__ import division
  from typing import Optional, Sequence, Union
  from warnings import warn
  import cv2
  import numpy
  import skimage
  from albumentations import random_utils
  from albumentations.augmentations.utils import MAX_VALUES_BY_DTYPE, _maybe_process_in_chunks, clip, clipped, ensure_contiguous, is_grayscale_image, is_rgb_image, non_rgb_warning, preserve_channel_dim, preserve_shape
label_desc: Use image node_id 23 for calling a global function with example usage: add_fog(img, fog_coef, alpha_coef, haze_list) and returns: image_rgb