code: def print_save_input_parameters(args, txt_file=None):
      import niftynet.utilities.user_parameters_parser as param_parser
  
      output_config = [
          "Input params at " + str(datetime.datetime.now())[:-6]
      ]
      for section in args:
          if section not in param_parser.SYSTEM_SECTIONS:
              output_config.extend(
                  __print_argparse_section(args, section)
              )
      for section in args:
          if section in param_parser.SYSTEM_SECTIONS:
              output_config.extend(
                  __print_argparse_section(args, section)
              )
  
      if txt_file is not None:
          with open(txt_file, "w") as f:
              [f.write(s + "\n") for s in output_config]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import datetime
  import os
  import re
  from functools import partial
  import numpy
  import tensorflow
  from scipy import ndimage
  from six import string_types
label_desc: Use image node_id 8 for calling a global function with example usage: print_save_input_parameters(args, txt_file) without return types