code: def test_script(self):
      net = VarAutoEncoder(
          spatial_dims=2,
          in_shape=(1, 32, 32),
          out_channels=1,
          latent_size=2,
          channels=(4, 8),
          strides=(2, 2),
      )
      test_data = torch.randn(2, 1, 32, 32)
      test_script_save(net, test_data, rtol=1e-3, atol=1e-3)
  
file_path: MONAI/tests/test_varautoencoder.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.networks import eval_mode
  from monai.networks.layers import Act
  from monai.networks.nets import VarAutoEncoder
  from tests.utils import test_script_save
label_desc: Use image node_id 2 for calling the TestVarAutoEncoder obj's underlying member method code with example usage: obj.test_script() without return types