code: def test_cloning_generator(self):
      (
          generator,
          _,
          _,
      ) = architectures_style_gan_v2.create_style_based_generator()
      generator.use_legacy_config = (
          True  # Old Keras serialization format flag
      )
  
      with tf.keras.utils.custom_object_scope(
          architectures_style_gan_v2.CUSTOM_LAYERS
      ):
          generator_clone = tf.keras.models.clone_model(generator)
  
      self.assertIsInstance(generator_clone, tf.keras.Model)
  
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 3 for calling the ArchitecturesStyleGanV2Test obj's underlying member method code with example usage: obj.test_cloning_generator() without return types