code: def output_fn(prediction_output, requested_output_content_type):
      # output from the model is NDArray
  
      data_to_return = prediction_output.asnumpy()
  
      if requested_output_content_type == "application/json":
          json.dumps(
              data_to_return.tolist
          ), requested_output_content_type
  
      raise NotImplementedError(
          "Model doesn't support requested output type: "
          + requested_output_content_type
      )
  
file_path: sagemaker-python-sdk/tests/data/mxnet_mnist/mnist_hosting_with_custom_handlers.py
imports: from __future__ import absolute_import
  import gzip
  import json
  import mxnet
  import numpy
  import os
  import struct
label_desc: Use image node_id 6 for calling a global function with example usage: output_fn(prediction_output, requested_output_content_type) without return types