code: def _get_losses(self, config, prediction_dict, image_size):
      image = tf.placeholder(tf.float32, shape=self.image.shape)
      gt_boxes = tf.placeholder(tf.float32, shape=self.gt_boxes.shape)
      model = FasterRCNN(config)
      model(image, gt_boxes, is_training=True)
      all_losses = model.loss(prediction_dict, return_all=True)
      with self.test_session() as sess:
          sess.run(tf.global_variables_initializer())
          all_losses = sess.run(all_losses)
          return all_losses
  
file_path: luminoth/luminoth/models/fasterrcnn/fasterrcnn_test.py
imports: import numpy
  import tensorflow
  from easydict import EasyDict
  from luminoth.models.fasterrcnn import FasterRCNN
  from luminoth.utils.bbox_transform import clip_boxes
label_desc: Use image node_id 4 for calling the FasterRCNNNetworkTest obj's underlying member method code with example usage: obj._get_losses(config, prediction_dict, image_size) and returns: all_losses