code: def test_script(self):
      net = Generator(
          latent_shape=(64,),
          start_shape=(8, 8, 8),
          channels=(8, 1),
          strides=(2, 2),
          num_res_units=2,
      )
      test_data = torch.rand(16, 64)
      test_script_save(net, test_data)
  
file_path: MONAI/tests/test_generator.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.networks import eval_mode
  from monai.networks.nets import Generator
  from tests.utils import test_script_save
label_desc: Use image node_id 2 for calling the TestGenerator obj's underlying member method code with example usage: obj.test_script() without return types