code: def get_resnet(n_layers, stride):
      layers = {
          50: [3, 4, 6, 3],
          101: [3, 4, 23, 3],
          152: [3, 8, 36, 3],
      }[n_layers]
      net = ResNet(Bottleneck, layers=layers, stride=stride)
      net.load_state_dict(
          model_zoo.load_url(model_urls["resnet" + str(n_layers) + "c"])
      )
      return net
  
imports: import math
  import torch.utils.model_zoo
  import torch
  import torch.nn
  import torch.nn.functional
  from torch.nn.modules.batchnorm import _BatchNorm
  from .None import settings
label_desc: Use image node_id 1 for calling a global function with example usage: get_resnet(n_layers, stride) and returns: net