class_docstr: Base class for models
class_docstr_tok: ["Base","class","for","models"]
code: def _add_summaries(self):
      tf.compat.v1.summary.scalar("data_loss", self.data_loss)
      tf.compat.v1.summary.scalar("regular_loss", self.regular_loss)
      tf.compat.v1.summary.scalar("loss", self.loss)
      merged = tf.compat.v1.summary.merge_all()
      return merged
  
imports: from os.path import join
  import abc
  import time
  import os
  import numpy
  import tensorflow
  from recommenders.models.deeprec.deeprec_utils import cal_metric
label_desc: Use image node_id 5 for calling the BaseModel obj's underlying member method code with example usage: obj._add_summaries() and returns: merged