code: def random_blotches(image, fgblobs, bgblobs, fgscale=10, bgscale=10):
      fg = random_blobs(image.shape[:2], fgblobs, fgscale)
      bg = random_blobs(image.shape[:2], bgblobs, bgscale)
      if image.ndim > 2:
          return np.concatenate(
              [
                  np.minimum(np.maximum(image[..., i], fg), 1 - bg)[
                      :, :, None
                  ]
                  for i in range(image.shape[-1])
              ],
              axis=image.ndim - 1,
          )
      return np.minimum(np.maximum(image, fg), 1 - bg)
  
imports: import random
  from random import randint
  import numpy
  import cv2
label_desc: Use image node_id 14 for calling a global function with example usage: random_blotches(image, fgblobs, bgblobs, fgscale, bgscale) and returns: np, np