code: def __init__(self, net_param, action_param, action):
      BaseApplication.__init__(self)
      tf.logging.info("starting label-driven registration")
      self.action = action
  
      self.net_param = net_param
      self.action_param = action_param
  
      self.registration_param = None
      self.data_param = None
  
imports: from __future__ import absolute_import, division, print_function
  import tensorflow
  from niftynet.application.base_application import BaseApplication
  from niftynet.io.image_reader import ImageReader
  from niftynet.contrib.sampler_pairwise.sampler_pairwise_uniform import PairwiseUniformSampler
  from niftynet.contrib.sampler_pairwise.sampler_pairwise_resize import PairwiseResizeSampler
  from niftynet.contrib.csv_reader.csv_reader import CSVReader
  from niftynet.engine.application_factory import OptimiserFactory, ApplicationNetFactory
  from niftynet.engine.application_variables import NETWORK_OUTPUT, CONSOLE, TF_SUMMARIES
  from niftynet.engine.windows_aggregator_resize import ResizeSamplesAggregator
  from niftynet.layer.resampler import ResamplerLayer
  from niftynet.layer.pad import PadLayer
  from niftynet.layer.loss_segmentation import LossFunction
label_desc: Use image node_id 1 to create a new RegApp object from inherited base classes: BaseApplication with example: obj = RegApp(net_param, action_param, action)