code: def model_fn(path_to_model_files):
      from mxnet.io import DataDesc
  
      loaded_symbol = mx.symbol.load(
          os.path.join(path_to_model_files, "symbol")
      )
      created_module = mx.mod.Module(symbol=loaded_symbol)
      created_module.bind([DataDesc("data", (1, 1, 28, 28))])
      created_module.load_params(
          os.path.join(path_to_model_files, "params")
      )
      return created_module
  
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 1 for calling a global function with example usage: model_fn(path_to_model_files) and returns: created_module