code: def forward(self, x, out_feature=False):
      out = F.relu(self.bn1(self.conv1(x)))
      out = self.layer1(out)
      out = self.layer2(out)
      out = self.layer3(out)
      out = self.layer4(out)
      out = F.avg_pool2d(out, 4)
      feature = out.view(out.size(0), -1)
      out = self.linear(feature)
      if not out_feature:
          return out
      else:
          return out, feature
  
imports: import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 3 for calling the ResNet obj's underlying member method code with example usage: obj.forward(x, out_feature) and returns: out, out,  feature