code: def resnet18(pretrained=False, **kwargs):
      """Constructs a ResNet-18 model.
  
      Args:
          pretrained (bool): If True, returns a model pre-trained on ImageNet.
  
      Returns:
          The created ResNet-18 model.
      """
      model = ResNet(BasicBlock, [2, 2, 2, 2], **kwargs)
  
      return model
  
imports: from singa import layer
  from singa import model
label_desc: Use image node_id 2 for calling a global function with example usage: resnet18(pretrained) and returns: model