code: def model_fn(model_dir):
      model = L.Classifier(MLP(1000, 10))
      serializers.load_npz(os.path.join(model_dir, "model.npz"), model)
      return model.predictor
  
file_path: sagemaker-python-sdk/tests/data/chainer_mnist/mnist.py
imports: from __future__ import print_function
  import argparse
  import os
  import chainer
  from chainer import serializers, training
  from chainer.datasets import tuple_dataset
  import chainer.functions
  import chainer.links
  from chainer.training import extensions
  import numpy
  import sagemaker_containers
label_desc: Use image node_id 2 for calling a global function with example usage: model_fn(model_dir) and returns: model