code: def get_noise_dimensions(
      num_upsampling_blocks: int,
  ) -> Sequence[Tuple[int, int, int]]:
      """Returns the dimensions of the noise inputs for noise input.
  
      This function can be used to determine the shape of the noise that needs to be
      fed into the synthesis network or generator network whenn use_noise_inputs is
      enabled. The dimensions are given as [height, width, channels].
  
      Args:
        num_upsampling_blocks: The number of upsampling blocks in the synthesis
          network.
  
      Returns:
        The dimensions of the noise inputs.
      """
      noise_dimensions = [(4, 4, 1)]
      size = 8
      for _ in range(num_upsampling_blocks):
          for _ in range(2):
              noise_dimensions.append((size, size, 1))
          size *= 2
      return noise_dimensions
  
file_path: graphics/tensorflow_graphics/projects/gan/architectures_style_gan_v2.py
imports: import math
  from typing import Callable, List, Optional, Sequence, Tuple, Union
  import tensorflow
  from tensorflow_graphics.projects.gan import architectures_progressive_gan
  from tensorflow_graphics.projects.gan import architectures_style_gan
  from tensorflow_graphics.projects.gan import keras_layers
label_desc: Use image node_id 2 for calling a global function with example usage: get_noise_dimensions(num_upsampling_blocks) and returns: noise_dimensions