code: def __init__(self):
      super(ModelWithSharedParameter, self).__init__()
      self.embedding = nn.Embedding(1000, 200)
      self.FC1 = nn.Linear(200, 200)
      self.FC2 = nn.Linear(200, 200)
      # tie weight in FC2 to FC1
      self.FC2.weight = nn.Parameter(self.FC1.weight)
      self.FC2.bias = nn.Parameter(self.FC1.bias)
  
      self.relu = nn.ReLU()
  
file_path: fairseq/tests/test_average_checkpoints.py
imports: import collections
  import os
  import shutil
  import tempfile
  import unittest
  import numpy
  import torch
  from scripts.average_checkpoints import average_checkpoints
  from torch import nn
label_desc: Use image node_id 1 to create a new ModelWithSharedParameter object from inherited base classes: nn with example: obj = ModelWithSharedParameter()