code: def test_sorted_ranks(self):
      scores = [[1.0, 3.0, 2.0]]
      ranks = utils.sorted_ranks(scores, seed=1)
      self.assertAllEqual(ranks, [[3, 1, 2]])
  
      tf.random.set_seed(3)
      scores = [[1.0, 2.0, 1.0]]
      ranks = utils.sorted_ranks(scores, shuffle_ties=False, seed=1)
      self.assertAllEqual(ranks, [[2, 1, 3]])
      ranks = utils.sorted_ranks(scores, shuffle_ties=True, seed=1)
      self.assertAllEqual(ranks, [[3, 1, 2]])
  
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 9 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_sorted_ranks() without return types