code: def classify(net, meta, im):
      out = predict_image(net, im)
      res = []
      r = []
      for i in range(meta.classes):
          # print(i)
          r.append(out[i])
          res.append((meta.names[i], out[i]))
      res = sorted(res, key=lambda x: -x[1])
      return res, r
  
file_path: MMdnn/mmdnn/conversion/examples/darknet/darknet.py
imports: from ctypes import *
  import math
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: classify(net, meta, im) and returns: res,  r