code: def polar2rect(mag, phase_angle):
      """Convert polar-form complex number to its rectangular form."""
      mag = tf.complex(mag, tf.convert_to_tensor(0.0, dtype=mag.dtype))
      phase = tf.complex(tf.cos(phase_angle), tf.sin(phase_angle))
      return mag * phase
  
file_path: magenta/magenta/models/gansynth/lib/spectral_ops.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 7 for calling a global function with example usage: polar2rect(mag, phase_angle) and returns: unknown