code: def collapse_alpha_random(sd=0.5):
      def inner(t_image):
          rgb, a = t_image[..., :3], t_image[..., 3:4]
          rgb_shape = rgb.get_shape().as_list()
          rand_img = param.random.image_sample(rgb_shape, sd=sd)
          return a * rgb + (1 - a) * rand_img
  
      return inner
  
file_path: lucid/lucid/optvis/transform.py
imports: import tensorflow
  import numpy
  import uuid
  from lucid.optvis import param
label_desc: Use image node_id 7 for calling a global function with example usage: collapse_alpha_random(sd) and returns: inner, unknown