docstr: Tests b/118632346.
docstr_tok: ["Tests","b\/118632346","."]
code: def test_drop_non_scalar_metric(self):
      """Tests b/118632346."""
  
      hparams = {"hoo": 1}
      attributes = {"aoo": tf.constant(1)}
      metrics = {
          "moo1": (tf.constant(1), tf.constant(1)),
          "moo2": (tf.constant([1, 1]), tf.constant([1, 1])),
      }
      want_metrics = metrics.copy()
      del want_metrics["moo2"]
      with self.test_session():
          report = Report(
              hparams=hparams, attributes=attributes, metrics=metrics
          )
          self.assertEqual(hparams, report.hparams)
          self.assertEqual(attributes, report.attributes)
          self.assertEqual(want_metrics, report.metrics)
  
file_path: adanet/adanet/subnetwork/report_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from adanet.subnetwork.report import Report
  import tensorflow.compat.v2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 2 for calling the ReportTest obj's underlying member method code with example usage: obj.test_drop_non_scalar_metric() without return types