code: def load_hdf5_file_to_model(hdf5_filename="model.h5"):
      # Create another model object first
      model2 = model.MLP()
  
      # Load the saved parameters into the model object
      chainer.serializers.load_hdf5(hdf5_filename, model2)
      print("{} loaded!".format(hdf5_filename))
  
      return model2
  
imports: import chainer
  import numpy
  import model
label_desc: Use image node_id 2 for calling a global function with example usage: load_hdf5_file_to_model(hdf5_filename) and returns: model2