code: def _generate_base_params():
      # initialise compulsory params that are irrelevant
      # to this unit test
      user_param = dict()
      user_param["SYSTEM"] = ParserNamespace(
          model_dir="./testing_data",
          num_threads=2,
          num_gpus=1,
          cuda_devices="",
          event_handler=None,
          iteration_generator=None,
      )
  
      user_param["NETWORK"] = ParserNamespace(
          batch_size=20, name="tests.toy_application.TinyNet"
      )
  
      user_param["TRAINING"] = ParserNamespace(
          starting_iter=0,
          max_iter=2,
          save_every_n=2,
          tensorboard_every_n=0,
          max_checkpoints=100,
      )
  
      user_param["INFERENCE"] = ParserNamespace(inference_iter=-1)
  
      user_param["CUSTOM"] = ParserNamespace(
          name="tests.toy_application.ToyApplication",
          vector_size=100,
          mean=10.0,
          stddev=2.0,
      )
      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 1 for calling a global function with example usage: _generate_base_params() and returns: user_param