code: def int_array(string_input):
      """
      convert input into a tuple of int values
  
      :param string_input:
      :return:
      """
      try:
          output_tuple = match_array(string_input, "int")
      except ValueError:
          raise argparse.ArgumentTypeError(
              "array of int expected, received {}".format(string_input)
          )
      return output_tuple
  
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 2 for calling a global function with example usage: int_array(string_input) and returns: output_tuple