code: def set_r(self, new_r):
      self.r = tf.constant(new_r, dtype=tf.int32)
      self.output_dim = self.frame_dim * new_r
  
imports: import tensorflow
  from tensorflow import keras
  from TTS.tts.tf.utils.tf_utils import shape_list
  from TTS.tts.tf.layers.common_layers import Prenet, Attention
label_desc: Use image node_id 3 for calling the Decoder obj's underlying member method code with example usage: obj.set_r(new_r) without return types