code: def test_style_based_generator_intermediate_outputs_shape(
      self, batch_size
  ):
      input_data = tf.ones(shape=(batch_size, 8))
      (
          generator,
          _,
          _,
      ) = architectures_style_gan.create_style_based_generator(
          latent_code_dimension=8,
          upsampling_blocks_num_channels=(8, 8),
          generate_intermediate_outputs=True,
      )
  
      outputs = generator(input_data)
      output_values = self.evaluate(outputs)
  
      self.assertLen(outputs, 3)
      for index, output_value in enumerate(output_values):
          self.assertSequenceEqual(
              output_value.shape,
              (batch_size, 2 ** (index + 2), 2 ** (index + 2), 3),
          )
  
file_path: graphics/tensorflow_graphics/projects/gan/architectures_style_gan_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.projects.gan import architectures_style_gan
label_desc: Use image node_id 2 for calling the ArchitecturesStyleGanTest obj's underlying member method code with example usage: obj.test_style_based_generator_intermediate_outputs_shape(batch_size) without return types