code: def encode_param_command(args, **kwargs):
      # Load Parameters
      in_files = [
          f
          for f in os.listdir(args.indir)
          if os.path.isfile(os.path.join(args.indir, f))
      ]
      logger.log(99, "Loading parameters...")
      for file_path in in_files:
          key = urllib.parse.unquote(
              os.path.splitext(file_path)[0].replace("~", "/")
          )
          logger.log(99, key)
          load_param_in_txt(key, os.path.join(args.indir, file_path))
      # Save parameter
      logger.log(99, "Saving parameters...")
      save_parameters(args.param)
  
      logger.log(99, "Encode Parameter Completed.")
      return True
  
file_path: nnabla/python/src/nnabla/utils/cli/encode_decode_param.py
imports: from __future__ import print_function
  import os
  import urllib.parse
  import nnabla
  import numpy
  from nnabla import logger
  from nnabla.parameter import get_parameters, set_parameter, save_parameters, load_parameters
label_desc: Use image node_id 4 for calling a global function with example usage: encode_param_command(args) and returns: True