code: def transform_fn(net, data, input_content_type, output_content_type):
      """
      Transform a request using the Gluon model. Called once per request.
  
      :param mod: The super resolution model.
      :param data: The request payload.
      :param input_content_type: The request content type.
      :param output_content_type: The (desired) response content type.
      :return: response payload and content type.
      """
      input_list = json.loads(data)
      input_nd = mx.nd.array(input_list).expand_dims(0)
      output_nd = net(input_nd)
      output_np = output_nd.asnumpy()
      output_list = output_np.tolist()
      return json.dumps(output_list), output_content_type
  
imports: import os
  import json
  import mxnet
  from mxnet.contrib import onnx
  from mxnet import gluon, nd
label_desc: Use image node_id 2 for calling a global function with example usage: transform_fn(net, data, input_content_type, output_content_type) and returns: json,  output_content_type