code: def test_nested_modulelist(self):
      class Net(nn.Module):
          def __init__(self, num_nodes, num_ops_per_node):
              super().__init__()
              self.ops = nn.ModuleList()
              self.num_nodes = num_nodes
              self.num_ops_per_node = num_ops_per_node
              for _ in range(num_nodes):
                  self.ops.append(
                      nn.ModuleList(
                          [
                              nn.Linear(16, 16)
                              for __ in range(num_ops_per_node)
                          ]
                      )
                  )
  
          def forward(self, x):
              state = x
              for ops in self.ops:
                  for op in ops:
                      state = op(state)
              return state
  
      model = Net(4, 2)
      x = torch.rand((16, 16), dtype=torch.float)
      self.run_test(model, (x,))
  
file_path: nni/test/algo/nas/graph_converter/test_convert_models.py
imports: import unittest
  import torch
  import nni.nas.nn.pytorch.layers
  from .convert_mixin import ConvertMixin, ConvertWithShapeMixin
label_desc: Use image node_id 1 for calling the TestModels obj's underlying member method code with example usage: obj.test_nested_modulelist() and returns: state