code: def transform_fn(
      model,
      request_data,
      input_content_type,
      requested_output_content_type,
  ):
      # for demonstration purposes we will be calling handlers from Option2
      return (
          output_fn(
              process_request_fn(
                  model, request_data, input_content_type
              ),
              requested_output_content_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 2 for calling a global function with example usage: transform_fn(model, request_data, input_content_type, requested_output_content_type) and returns: output_fn,  requested_output_content_type