code: def _generate_data_param():
      user_param = dict()
      user_param["modality"] = ParserNamespace(
          csv_file=os.path.join("testing_data", "mod1test.csv"),
          path_to_search="testing_data",
          filename_contains="nii",
      )
  
      user_param["modality2"] = ParserNamespace(
          csv_file=os.path.join("testing_data", "mod2test.csv"),
          path_to_search="testing_data",
          filename_contains="nii",
      )
      return user_param
  
imports: from __future__ import absolute_import, print_function
  import os
  import tensorflow
  from niftynet.engine.application_driver import ApplicationDriver
  from niftynet.utilities.util_common import ParserNamespace
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 2 for calling a global function with example usage: _generate_data_param() and returns: user_param