class_docstr: BaseApplication represents an interface.
  
  Each application ``type_str`` should support to use
  the standard training and inference driver.
class_docstr_tok: ["BaseApplication","represents","an","interface",".","Each","application","``","type_str","``","should","support","to","use","the","standard","training","and","inference","driver","."]
docstr: Adding sampler output tensor and network tensors to the graph.
  
  :param outputs_collector:
  :param gradients_collector:
  :return:
docstr_tok: ["Adding","sampler","output","tensor","and","network","tensors","to","the","graph",".",":","param","outputs_collector",":",":","param","gradients_collector",":",":","return",":"]
code: def connect_data_and_network(
      self, outputs_collector=None, gradients_collector=None
  ):
      """
      Adding sampler output tensor and network tensors to the graph.
  
      :param outputs_collector:
      :param gradients_collector:
      :return:
      """
      raise NotImplementedError
  
imports: import os
  from argparse import Namespace
  import tensorflow
  from six import with_metaclass
  from niftynet.engine.signal import TRAIN, INFER, EVAL
label_desc: Use image node_id 4 for calling the BaseApplication obj's underlying member method code with example usage: obj.connect_data_and_network(outputs_collector, gradients_collector) without return types