code: def rms(x, name=None):
      """
      Returns:
          root mean square of tensor x.
      """
      if name is None:
          name = x.op.name + "/rms"
          with tfv1.name_scope(None):  # name already contains the scope
              return tf.sqrt(tf.reduce_mean(tf.square(x)), name=name)
      return tf.sqrt(tf.reduce_mean(tf.square(x)), name=name)
  
imports: import tensorflow
  from ..compat import tfv1
label_desc: Use image node_id 2 for calling a global function with example usage: rms(x, name) and returns: tf, tf