class_docstr: Benchmarks for constrained sequence ops in TF Text.
class_docstr_tok: ["Benchmarks","for","constrained","sequence","ops","in","TF","Text","."]
code: def benchmark_viterb_constrained_sequence(self):
      if FLAGS.ragged_vs_dense:
          return
  
      self._run(
          text_ops.greedy_constrained_sequence,
          {
              "transition_weights": self.transition_weights,
              "allowed_transitions": self.allowed_transitions,
              "use_log_space": True,
              "use_start_and_end_states": True,
          },
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl import app
  from absl import flags
  import numpy
  import tensorflow
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow_text.python import ops
  from tensorflow_text.python.benchmarks import benchmark_utils
label_desc: Use image node_id 5 for calling the ConstrainedSequenceOpsBenchmark obj's underlying member method code with example usage: obj.benchmark_viterb_constrained_sequence() without return types