code: def test_de_noise(self):
      counts = [[1, 2, 3], [1, 2, 3]]
      noise = [[3, 3, 4], [3, 2, 1]]
      # Larger noise ratio -> the results are more sharp.
      de_noised = utils.de_noise(counts, noise, ratio=0.9)
      self.assertAllClose(
          de_noised, [[0.0, 0.22, 0.78], [0.0, 0.0, 1.0]]
      )
      # Smaller noise ratio -> the results are close to counts.
      de_noised = utils.de_noise(counts, noise, ratio=0.1)
      self.assertAllClose(
          de_noised,
          [
              [0.151852, 0.337037, 0.511111],
              [0.12963, 0.333333, 0.537037],
          ],
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import tensorflow
  from tensorflow_ranking.python import utils
label_desc: Use image node_id 16 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_de_noise() without return types