code: def __init__(self, orig_resnet, **kwargs):
      super(Resnet, self).__init__()
  
      # take pretrained resnet, except AvgPool and FC
      self.conv1 = orig_resnet.conv1
      self.bn1 = orig_resnet.bn1
      self.relu1 = orig_resnet.relu1
      self.conv2 = orig_resnet.conv2
      self.bn2 = orig_resnet.bn2
      self.relu2 = orig_resnet.relu2
      self.conv3 = orig_resnet.conv3
      self.bn3 = orig_resnet.bn3
      self.relu3 = orig_resnet.relu3
      self.maxpool = orig_resnet.maxpool
      self.layer1 = orig_resnet.layer1
      self.layer2 = orig_resnet.layer2
      self.layer3 = orig_resnet.layer3
      self.layer4 = orig_resnet.layer4
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from .None import seg_resnet
  from .None import seg_resnext
label_desc: Use image node_id 1 to create a new Resnet object from inherited base classes: nn with example: obj = Resnet(orig_resnet)