code: def _angle2rads(angle, units):
      angle = tf.cast(angle, "float32")
      if units.lower() == "degrees":
          angle = 3.14 * angle / 180.0
      elif units.lower() in ["radians", "rads", "rad"]:
          angle = angle
      return angle
  
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 9 for calling a global function with example usage: _angle2rads(angle, units) and returns: angle