code: def _create_nasnet(variant, pretrained=False, **kwargs):
      return build_model_with_cfg(
          NASNetALarge,
          variant,
          pretrained,
          feature_cfg=dict(
              feature_cls="hook", no_rewrite=True
          ),  # not possible to re-write this model
          **kwargs,
      )
  
imports: from functools import partial
  import torch
  import torch.nn
  import torch.nn.functional
  from timm.layers import ConvNormAct, create_conv2d, create_pool2d, create_classifier
  from ._builder import build_model_with_cfg
  from ._registry import register_model, generate_default_cfgs
label_desc: Use image node_id 1 for calling a global function with example usage: _create_nasnet(variant, pretrained) and returns: build_model_with_cfg