code: def alexnet(
      pretrained=False,
      device=cpu(),
      root=os.path.join(base.data_dir(), "models"),
      **kwargs,
  ):
      r"""AlexNet model from the `"One weird trick..." <https://arxiv.org/abs/1404.5997>`_ paper.
  
      Parameters
      ----------
      pretrained : bool, default False
          Whether to load the pretrained weights for model.
      device : Device, default CPU
          The device in which to load the pretrained weights.
      root : str, default $MXNET_HOME/models
          Location for keeping the model parameters.
      """
      net = AlexNet(**kwargs)
      if pretrained:
          from ..model_store import get_model_file
  
          net.load_parameters(
              get_model_file("alexnet", root=root), device=device
          )
      return net
  
file_path: mxnet/python/mxnet/gluon/model_zoo/vision/alexnet.py
imports: import os
  from ....device import cpu
  from ...block import HybridBlock
  from ...None import nn
  from ....None import base
  from ....util import use_np, wrap_ctx_to_device_func
label_desc: Use image node_id 1 for calling a global function with example usage: alexnet(pretrained, device, root) and returns: net