code: def main(image_path):
      print("image_path:{}".format(image_path))
  
      alexnet = mx.gluon.model_zoo.vision.alexnet(pretrained=True)
  
      # print(alexnet)
  
      orig = cv2.imread(image_path)[..., ::-1]
      orig = cv2.resize(orig, (224, 224))
      img = orig.copy().astype(np.float32)
  
      mean = [0.485, 0.456, 0.406]
      std = [0.229, 0.224, 0.225]
      img /= 255.0
      img = old_div((img - mean), std)
      img = img.transpose(2, 0, 1)
  
      img = np.expand_dims(img, axis=0)
  
      array = mx.nd.array(img)
  
      outputs = alexnet(array).asnumpy()
      label = np.argmax(outputs)
      print(label)
  
file_path: AdvBox/tutorials/imagenet_tools_mxnet.py
imports: from __future__ import division
  from __future__ import print_function
  from past.utils import old_div
  import logging
  import sys
  from mxnet import gluon
  import mxnet
  from mxnet.gluon import nn
  from mxnet import ndarray
  import matplotlib.pyplot
  import cv2
  from mxnet import image
  from mxnet import autograd
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: main(image_path) without return types