code: def add_input_data_args(parser):
      """
      keywords defined for input data specification section
  
      :param parser:
      :return:
      """
      parser.add_argument(
          "--csv_file",
          metavar="",
          type=str,
          help="Input list of subjects in csv files",
          default="",
      )
  
      parser.add_argument(
          "--csv_data_file",
          metavar="",
          type=str,
          help="Path to a csv with data; labels, features or coordinates for"
          "the patch based sampler",
          default="",
      )
  
      parser.add_argument(
          "--to_ohe",
          help="Indicates if the data provided in the csv should be "
          "one-hot-encoded."
          "This is only valid when the csv_data_file has 2 columns",
          type=str2boolean,
          default=False,
      )
  
      parser.add_argument(
          "--path_to_search",
          metavar="",
          type=str,
          help="Input data folder to find a list of input image files",
          default="",
      )
  
      parser.add_argument(
          "--filename_contains",
          metavar="",
          type=str_array,
          help="keywords in input file names, matched filenames will be used.",
      )
  
      parser.add_argument(
          "--filename_not_contains",
          metavar="",
          type=str_array,
          help="keywords in input file names, negatively matches filenames",
          default="",
      )
      parser.add_argument(
          "--filename_removefromid",
          metavar="",
          type=str,
          help="Regular expression for extracting subject id from filename, "
          "matched pattern will be removed from the file names "
          "to form the subject id",
          default="",
      )
  
      parser.add_argument(
          "--interp_order",
          type=int,
          choices=[0, 1, 2, 3],
          default=1,
          help="interpolation order of the input images",
      )
  
      parser.add_argument(
          "--loader",
          type=str,
          choices=list(SUPPORTED_LOADERS),
          default=None,
          help="Image loader to use from {}. "
          "Leave blank to try all loaders.".format(
              list(SUPPORTED_LOADERS)
          ),
      )
  
      parser.add_argument(
          "--pixdim",
          type=float_array,
          default=(),
          help="voxel width along each dimension",
      )
  
      parser.add_argument(
          "--axcodes",
          type=str_array,
          default=(),
          help="labels for positive end of voxel axes, possible labels are"
          " ('L','R'),('P','A'),('I','S')"
          " *see also nibabel.orientations.ornt2axcodes",
      )
  
      parser.add_argument(
          "--spatial_window_size",
          type=spatial_atleast3d,
          help="specify the spatial size of the input data (ndims <= 3)",
          default=(),
      )
      return parser
  
file_path: NiftyNet/niftynet/utilities/user_parameters_default.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import os
  from niftynet.engine.image_window_dataset import SMALLER_FINAL_BATCH_MODE
  from niftynet.io.image_loader import SUPPORTED_LOADERS
  from niftynet.io.image_sets_partitioner import SUPPORTED_PHASES
  from niftynet.utilities.user_parameters_helper import float_array, int_array, spatial_atleast3d, spatialnumarray, str2boolean, str_array
  from niftynet.utilities.util_import import require_module
label_desc: Use image node_id 4 for calling a global function with example usage: add_input_data_args(parser) and returns: parser