docstr: Check if the scores sum to 1 after taking their absolute values.
docstr_tok: ["Check","if","the","scores","sum","to","1","after","taking","their","absolute","values","."]
code: def test_normalize_scores(self, scores, make_positive):
      """Check if the scores sum to 1 after taking their absolute values."""
      original_min = np.min(scores)
      scores = utils.normalize_scores(
          scores, make_positive=make_positive
      )
      self.assertAllClose(1.0, np.abs(scores).sum(-1))
      if (
          not make_positive
      ):  # Keep the sign of originally negative values.
          self.assertLessEqual(
              np.min(scores), np.max([0.0, original_min])
          )
  
file_path: lit/lit_nlp/components/citrus/utils_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.components.citrus import utils
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_normalize_scores(scores, make_positive) without return types