code: def _iresnet(arch, block, layers, pretrained, progress, **kwargs):
      model = IResNet(block, layers, **kwargs)
      if pretrained:
          raise ValueError()
      return model
  
imports: import torch
  from torch import nn
  import torch.nn.functional
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _iresnet(arch, block, layers, pretrained, progress) and returns: model