code: def forward(self, x, t):
      h = self.bn1(self.conv1(x))
      h = F.max_pooling_2d(F.relu(h), 3, stride=2)
      h = self.res2(h)
      h = self.res3(h)
      h = self.res4(h)
      h = self.res5(h)
      h = F.average_pooling_2d(h, 7, stride=1)
      h = self.fc(h)
  
      loss = F.softmax_cross_entropy(h, t)
      chainer.report({"loss": loss, "accuracy": F.accuracy(h, t)}, self)
      return loss
  
imports: import chainer
  import chainer.functions
  from chainer import initializers
  import chainer.links
label_desc: Use image node_id 2 for calling the ResNet50 obj's underlying member method code with example usage: obj.forward(x, t) and returns: loss