code: def test_generator_output_size_with_noise_inputs(self):
      upsampling_blocks_num_channels = (8, 8)
      batch_size = 2
      (
          generator,
          _,
          _,
      ) = architectures_style_gan_v2.create_style_based_generator(
          latent_code_dimension=8,
          upsampling_blocks_num_channels=upsampling_blocks_num_channels,
          use_noise_inputs=True,
      )
      noise_dimensions = (
          architectures_style_gan_v2.get_noise_dimensions(
              num_upsampling_blocks=len(upsampling_blocks_num_channels)
          )
      )
      input_noise = [
          np.zeros((batch_size,) + noise_dimension, dtype=np.float32)
          for noise_dimension in noise_dimensions
      ]
      input_data = np.ones(shape=(batch_size, 8), dtype=np.float32)
      expected_size = 16
  
      output = generator([input_data] + input_noise)
  
      self.assertSequenceEqual(
          output.shape, (batch_size, expected_size, expected_size, 3)
      )
  
file_path: graphics/tensorflow_graphics/projects/gan/architectures_style_gan_v2_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.projects.gan import architectures_style_gan_v2
label_desc: Use image node_id 2 for calling the ArchitecturesStyleGanV2Test obj's underlying member method code with example usage: obj.test_generator_output_size_with_noise_inputs() without return types