code: def __init__(self):
      super().__init__()
      self.layer = nn.Linear(2, 2)
      self.tied_layer = nn.Linear(2, 2)
      self.tied_layer.weight = self.layer.weight
      self.register_buffer("buffer", torch.ones(3))
  
file_path: pytorch-lightning/tests/tests_fabric/strategies/launchers/test_multiprocessing_integration.py
imports: import pytest
  import torch
  import torch.nn
  from lightning.fabric import Fabric
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 1 to create a new SimpleModel object from inherited base classes: nn with example: obj = SimpleModel()