code: def _ctc_loss_v2(
      labels,
      inputs,
      sequence_length,
      preprocess_collapse_repeated=False,
      ctc_merge_repeated=True,
      ignore_longer_outputs_than_inputs=False,
      time_major=True,
  ):
      """Call ctc_loss_v2 with v1 args."""
      assert not preprocess_collapse_repeated
      assert ctc_merge_repeated
      assert not ignore_longer_outputs_than_inputs
      return ctc_ops.ctc_loss_v2(
          labels=labels,
          logits=inputs,
          logit_length=sequence_length,
          label_length=None,
          blank_index=-1,
          logits_time_major=time_major,
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import ctc_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling a global function with example usage: _ctc_loss_v2(labels, inputs, sequence_length, preprocess_collapse_repeated, ctc_merge_repeated, ignore_longer_outputs_than_inputs, time_major) and returns: ctc_ops