code: def test_script(self, input_param, input_shape, expected_shape):
      spatial_dims = input_param["dim"]
      stride = (1, 2, 2)[:spatial_dims]
      model = resnet18(spatial_dims=spatial_dims, conv1_t_stride=stride)
      input_param["model"] = model
      net = NetAdapter(**input_param).to("cpu")
      test_data = torch.randn(input_shape).to("cpu")
      test_script_save(net, test_data)
  
file_path: MONAI/tests/test_net_adapter.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 NetAdapter, resnet18
  from tests.utils import test_script_save
label_desc: Use image node_id 2 for calling the TestNetAdapter obj's underlying member method code with example usage: obj.test_script(input_param, input_shape, expected_shape) without return types