docstr: Tests if DAG is built properly and runs.
      
docstr_tok: ["Tests","if","DAG","is","built","properly","and","runs","."]
code: def test_dag_construction(self):
      """Tests if DAG is built properly and runs."""
      loss_group = losses.LossGroup(dag=self.dag)
      print(
          "!!!!!!!!!!!", loss_group.dag, loss_group.loss_names, self.dag
      )
      loss_outputs = loss_group(self.nn_outputs)
      self.assertIsInstance(loss_outputs, dict)
      self._check_tensor_outputs(self.expected_outputs, loss_outputs)
  
file_path: ddsp/ddsp/losses_test.py
imports: from ddsp import core
  from ddsp import losses
  import numpy
  import tensorflow
label_desc: Use image node_id 3 for calling the LossGroupTest obj's underlying member method code with example usage: obj.test_dag_construction() without return types