class_docstr: Base class for all models.
class_docstr_tok: ["Base","class","for","all","models","."]
docstr: Helper function to run loss objects on args and add to model losses.
docstr_tok: ["Helper","function","to","run","loss","objects","on","args","and","add","to","model","losses","."]
code: def _update_losses_dict(self, loss_objs, *args, **kwargs):
      """Helper function to run loss objects on args and add to model losses."""
      for loss_obj in ddsp.core.make_iterable(loss_objs):
          if hasattr(loss_obj, "get_losses_dict"):
              losses_dict = loss_obj.get_losses_dict(*args, **kwargs)
              self._losses_dict.update(losses_dict)
  
file_path: ddsp/ddsp/training/models/model.py
imports: import time
  from absl import logging
  import ddsp
  from ddsp.core import copy_if_tf_function
  from ddsp.training import train_util
  import tensorflow
label_desc: Use image node_id 4 for calling the Model obj's underlying member method code with example usage: obj._update_losses_dict(loss_objs) without return types