code: def test_sort_by_scores_with_mask_and_shuffle_ties(self):
      tf.random.set_seed(42)
      scores = [[0.0, math.inf, 0.0, -math.inf, -math.inf]]
      names = [["a", "b", "c", "d", "e"]]
      mask = [[True, False, True, True, False]]
  
      result = utils.sort_by_scores(
          scores, [names], mask=mask, shuffle_ties=True, seed=13
      )
      sorted_names = result[0]
      self.assertAllEqual(
          sorted_names, [[b"a", b"c", b"d", b"b", b"e"]]
      )
  
      result = utils.sort_by_scores(
          scores, [names], mask=mask, shuffle_ties=True, seed=17
      )
      sorted_names = result[0]
      self.assertAllEqual(
          sorted_names, [[b"c", b"a", b"d", b"e", 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 8 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_sort_by_scores_with_mask_and_shuffle_ties() without return types