code: def layer_op(self, prediction):
      with tf.device("/cpu:0"):
          return self._data_loss_func(
              prediction, **self._loss_func_params
          )
  
file_path: NiftyNet/niftynet/layer/loss_autoencoder.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.engine.application_factory import LossAutoencoderFactory
  from niftynet.layer.base_layer import Layer
label_desc: Use image node_id 3 for calling the LossFunction obj's underlying member method code with example usage: obj.layer_op(prediction) and returns: self