code: def __init__(self) -> None:
      super().__init__()
      self.linear1 = nn.Linear(3, 3)
      self.linear2 = nn.Linear(3, 3)
  
imports: import torch
  import torch.nn
  import pytest
  from allennlp.common.params import Params
  from allennlp.common.testing import multi_device
  from allennlp.nn.checkpoint.checkpoint_wrapper import CheckpointWrapper, TorchCheckpointWrapper
label_desc: Use image node_id 1 to create a new SubmoduleWithKwargs object from inherited base classes: nn with example: obj = SubmoduleWithKwargs()