code: def _h5_parameter_file_saver(ctx, filename, ext):
      with get_file_handle_save(filename, ext) as hd:
          for i, (k, v) in enumerate(ctx.parameters.items()):
              hd[k] = v.data.get_data("r")
              hd[k].attrs["need_grad"] = v.need_grad
              # To preserve order of parameters
              hd[k].attrs["index"] = i
  
imports: import contextlib
  import io
  import os
  import re
  import zipfile
  from collections import OrderedDict
  from functools import partial
  import google.protobuf.text_format
  import h5py
  import nnabla
  import numpy
  from nnabla.logger import logger
  from nnabla.utils import nnabla_pb2
  from nnabla.utils.nnp_format import nnp_version
label_desc: Use image node_id 21 for calling a global function with example usage: _h5_parameter_file_saver(ctx, filename, ext) without return types