code: def __add_gan_args(parser):
      """
      keywords defined for GAN
  
      :param parser:
      :return:
      """
      parser.add_argument(
          "--noise_size",
          metavar="",
          help="length of the noise vector",
          type=int,
          default=-1,
      )
  
      parser.add_argument(
          "--n_interpolations",
          metavar="",
          help="the method of generating window from image",
          type=int,
          default=10,
      )
  
      from niftynet.application.gan_application import SUPPORTED_INPUT
  
      parser = add_input_name_args(parser, SUPPORTED_INPUT)
      return parser
  
file_path: NiftyNet/niftynet/utilities/user_parameters_custom.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from niftynet.utilities.user_parameters_helper import add_input_name_args, int_array, str2boolean
label_desc: Use image node_id 4 for calling a global function with example usage: __add_gan_args(parser) and returns: parser