code: def testRougeLOp_notRagged(self, hyp, ref):
      # Note: ragged_factory_ops.constant returns a tf.Tensor for flat input lists
      tokens_hyp = ragged_factory_ops.constant(hyp, dtype=dtypes.int32)
      tokens_ref = ragged_factory_ops.constant(ref, dtype=dtypes.int32)
      with self.assertRaises(ValueError):
          text_similarity_metric_ops.rouge_l(tokens_hyp, tokens_ref)
  
file_path: text/tensorflow_text/python/metrics/text_similarity_metric_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import re
  from absl.testing import parameterized
  from tensorflow.python.framework import dtypes
  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.metrics import text_similarity_metric_ops
label_desc: Use image node_id 2 for calling the TextSimilarityMetricOpsTest obj's underlying member method code with example usage: obj.testRougeLOp_notRagged(hyp, ref) without return types