code: def test_sort_by_scores_shuffle_ties(self):
      tf.random.set_seed(589)
      scores = [[2.0, 1.0, 1.0]]
      names = [["a", "b", "c"]]
      sorted_names = utils.sort_by_scores(
          scores, [names], shuffle_ties=False
      )[0]
      self.assertAllEqual(sorted_names, [[b"a", b"b", b"c"]])
      sorted_names = utils.sort_by_scores(
          scores, [names], shuffle_ties=True, seed=2
      )[0]
      self.assertAllEqual(sorted_names, [[b"a", b"c", b"b"]])
  
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 6 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_sort_by_scores_shuffle_ties() without return types