code: def hybrid_forward(self, F, x):
      x = self.base(x)
      x = self.avgpool(x)
      x = self.bn(self.flatten(x))
      if self.pretrained:
          x = self.classifier(x)
      return x
  
file_path: gluon-cv/scripts/re-id/baseline/networks/resnet.py
imports: from __future__ import absolute_import
  from mxnet.gluon import nn, HybridBlock
  from mxnet import init
  from mxnet.gluon.model_zoo import vision
label_desc: Use image node_id 2 for calling the ResNet obj's underlying member method code with example usage: obj.hybrid_forward(F, x) and returns: x