code: def test_reader_field(self):
      data_param = {"mr": {"path_to_search": IMAGE_PATH_2D}}
      group_param = {"ct": ("mr",)}
      reader = ImageReader(["ct"]).initialise(data_param, group_param)
      self.renamed_property_asserts(reader)
      idx, data, interp = reader()
  
      # test output
      self.assertTrue("ct" in data)
      self.assertTrue(idx in range(len(reader.output_list)))
      self.assertDictEqual(interp, {"ct": (1,)})
      self.assertEqual(data["ct"].shape, (100, 100, 1, 1, 1))
  
      with self.assertRaisesRegexp(ValueError, ""):
          # grouping name 'ct' but
          reader = ImageReader(["mr"]).initialise(
              data_param, group_param
          )
  
imports: from __future__ import absolute_import, print_function
  import os
  from PIL import Image
  import nibabel
  import numpy
  import tensorflow
  from niftynet.io.image_reader import ImageReader
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 5 for calling the Read2DTest obj's underlying member method code with example usage: obj.test_reader_field() without return types