docstr: Helper function that matches the maximum behaviour in the C++ op.
docstr_tok: ["Helper","function","that","matches","the","maximum","behaviour","in","the","C++","op","."]
code: def _last_max(self, array):
      """Helper function that matches the maximum behaviour in the C++ op."""
      score = -float("inf")
      index = -1
      for i in range(len(array)):
          if array[i] >= score:
              index = i
              score = array[i]
      return index
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import greedy_constrained_sequence_op
label_desc: Use image node_id 1 for calling the GreedyConstrainedSequenceOpTest obj's underlying member method code with example usage: obj._last_max(array) and returns: index