parameters: (pretrained=False, **kwargs)
return_statement: return model
docstring: Constructs a ResNet-18 model.
  
      Args:
          pretrained (bool): If True, returns a model pre-trained on ImageNet.
      
      Returns:
          The created ResNet-18 model.
docstring_summary: Constructs a ResNet-18 model.
docstring_tokens: Constructs a ResNet - 18 model .
function: 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
function_tokens: def resnet18 ( pretrained = False , * * kwargs ) : model = ResNet ( BasicBlock , [ 2 , 2 , 2 , 2 ] , * * kwargs ) return model