code: def testPadModelInputsTensor(
      self, pack_inputs, expected, expected_mask, max_seq_length=10
  ):
      # Pack everything as a RaggedTensor.
      pack_inputs = constant_op.constant(pack_inputs)
  
      # Pad to max_seq_length and construct input_mask
      (
          actual_padded,
          actual_mask,
      ) = pad_model_inputs_ops.pad_model_inputs(
          pack_inputs, max_seq_length=max_seq_length, pad_value=0
      )
  
      # Verify the contents of all the padded (and maybe truncated) values as well
      # as the mask.
      self.assertAllEqual(expected, 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 2 for calling the ModelInputPackerTest obj's underlying member method code with example usage: obj.testPadModelInputsTensor(pack_inputs, expected, expected_mask, max_seq_length) without return types