code: def test_sort_by_scores_with_mask(self):
      scores = [[0.0, math.inf, 2.0, -math.inf, 1.0]]
      names = [["a", "b", "c", "d", "e"]]
      mask_1 = [[True, False, True, True, False]]
      mask_2 = [[False, True, False, True, True]]
      sorted_names = utils.sort_by_scores(
          scores, [names], mask=mask_1, shuffle_ties=False
      )[0]
      self.assertAllEqual(
          sorted_names, [[b"c", b"a", b"d", b"b", b"e"]]
      )
      sorted_names = utils.sort_by_scores(
          scores, [names], mask=mask_2, shuffle_ties=False
      )[0]
      self.assertAllEqual(
          sorted_names, [[b"b", b"e", b"d", b"a", b"c"]]
      )
      sorted_names = utils.sort_by_scores(
          scores, [names], shuffle_ties=False
      )[0]
      self.assertAllEqual(
          sorted_names, [[b"b", b"c", b"e", b"a", b"d"]]
      )
  
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 7 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_sort_by_scores_with_mask() without return types