code: def random_rotate(angles, units="degrees", seed=None):
      def inner(t):
          t = tf.convert_to_tensor(t, preferred_dtype=tf.float32)
          angle = _rand_select(angles, seed=seed)
          angle = _angle2rads(angle, units)
          return tf.contrib.image.rotate(t, angle)
  
      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 4 for calling a global function with example usage: random_rotate(angles, units, seed) and returns: inner, tf