docstr: Tests types beyond Python int for the max_seq_length argument.
docstr_tok: ["Tests","types","beyond","Python","int","for","the","max_seq_length","argument","."]
code: def testLengthType(self, length_fn):
      """Tests types beyond Python int for the max_seq_length argument."""
      pack_inputs = ragged_factory_ops.constant(
          [[1, 2, 3, 4, 5], [8, 9]], dtypes.int32
      )
      max_seq_length = length_fn(3)
      expected_padded = [[1, 2, 3], [8, 9, 0]]
      expected_mask = [[1, 1, 1], [1, 1, 0]]
      (
          actual_padded,
          actual_mask,
      ) = pad_model_inputs_ops.pad_model_inputs(
          pack_inputs, max_seq_length=max_seq_length, pad_value=0
      )
      self.assertAllEqual(expected_padded, actual_padded)
      self.assertAllEqual(expected_mask, actual_mask)
  
file_path: text/tensorflow_text/python/ops/pad_model_inputs_ops_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import pad_model_inputs_ops
label_desc: Use image node_id 3 for calling the ModelInputPackerTest obj's underlying member method code with example usage: obj.testLengthType(length_fn) without return types