code: def test_training_no_validation(self):
      clear_target()
      user_param = generate_input_params(
          SYSTEM={"action": "train", "dataset_split_file": TARGET_FILE},
          TRAINING={
              "validation_every_n": -1,
              "validation_max_iter": 1,
              "exclude_fraction_for_validation": 0.0,
              "exclude_fraction_for_inference": 0.0,
          },
      )
      data_param = _generate_data_param()
      app_driver = ApplicationDriver()
      app_driver.initialise_application(user_param, data_param)
      partitioner = app_driver.data_partitioner
      self.assertFalse(partitioner.has_training)
      self.assertFalse(partitioner.has_inference)
      self.assertFalse(partitioner.has_validation)
      self.assertTrue(partitioner.all_files is not None)
  
      clear_target()
      user_param = generate_input_params(
          SYSTEM={"action": "train", "dataset_split_file": TARGET_FILE},
          TRAINING={
              "validation_every_n": -1,
              "validation_max_iter": 1,
              "exclude_fraction_for_validation": 0.0,
              "exclude_fraction_for_inference": 0.0,
          },
      )
      data_param = _generate_data_param()
      app_driver = ApplicationDriver()
      app_driver.initialise_application(user_param, data_param)
      partitioner = app_driver.data_partitioner
      self.assertFalse(partitioner.has_training)
      self.assertFalse(partitioner.has_inference)
      self.assertFalse(partitioner.has_validation)
      self.assertTrue(partitioner.all_files is not None)
  
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 the DriverPartitionerTestNoFile obj's underlying member method code with example usage: obj.test_training_no_validation() without return types