code: def add_input_name_args(parser, supported_input):
      """
      adding keywords that defines grouping of the input sections
      (mainly used for multi-modal input specifications)
  
      :param parser:
      :param supported_input:
      :return:
      """
      for input_name in list(supported_input):
          parser.add_argument(
              "--{}".format(input_name),
              metavar="",
              help="names of grouping the input sections {}".format(
                  input_name
              ),
              type=str_array,
              default=(),
          )
      return parser
  
file_path: NiftyNet/niftynet/utilities/user_parameters_helper.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import re
  from six import string_types
  from niftynet.utilities.user_parameters_regex import match_array
label_desc: Use image node_id 9 for calling a global function with example usage: add_input_name_args(parser, supported_input) and returns: parser