code: def test_replicated_ids(self):
      self._reset_partition_file()
      with open(partition_output, "a") as partition_file:
          partition_file.write("1065,Training\n")
          partition_file.write("1065,Validation")
      test_partitioner = ImageSetsPartitioner()
      test_partitioner.initialise(
          test_sections,
          new_partition=False,
          data_split_file=partition_output,
      )
      self.assertEqual(
          test_partitioner.get_file_list()[COLUMN_UNIQ_ID].count(), 4
      )
      self.assertEqual(
          test_partitioner.get_file_list(TRAIN)[COLUMN_UNIQ_ID].count(),
          3,
      )
      self.assertEqual(
          test_partitioner.get_file_list(VALID)[COLUMN_UNIQ_ID].count(),
          2,
      )
      self.assertEqual(
          test_partitioner.get_file_list(INFER)[COLUMN_UNIQ_ID].count(),
          1,
      )
  
file_path: NiftyNet/tests/image_sets_partitioner_test.py
imports: from __future__ import absolute_import, print_function
  import os
  import tensorflow
  from niftynet.io.image_sets_partitioner import COLUMN_UNIQ_ID
  from niftynet.io.image_sets_partitioner import ImageSetsPartitioner
  from niftynet.engine.signal import TRAIN, VALID, INFER
  from niftynet.utilities.util_common import ParserNamespace
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 2 for calling the ImageSetsPartitionerIllPartition obj's underlying member method code with example usage: obj.test_replicated_ids() without return types