code: def compute_loss(self, fake_logits, real_logits):
      d_loss = tf.reduce_mean(real_logits - fake_logits)
      g_loss = tf.reduce_mean(fake_logits)
      return d_loss, g_loss
  
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.application.base_application import BaseApplication
  from niftynet.engine.application_factory import ApplicationNetFactory
  from niftynet.engine.application_factory import OptimiserFactory
  from niftynet.engine.application_variables import CONSOLE
  from niftynet.engine.application_variables import TF_SUMMARIES
  from niftynet.engine.sampler_random_vector_v2 import RandomVectorSampler
  from niftynet.layer.convolution import ConvolutionalLayer
  from niftynet.layer.fully_connected import FullyConnectedLayer
  from niftynet.network.base_net import BaseNet
label_desc: Use image node_id 7 for calling the ToyApplication obj's underlying member method code with example usage: obj.compute_loss(fake_logits, real_logits) and returns: d_loss,  g_loss