def METHOD_NAME(ids: tf.Tensor, id_len: tf.Tensor,
                   padding_value: int) -> tf.Tensor:
  """Given a batch of sequences, fills the padding pos with `padding_value`.
  Args:
    ids: a [B, max_len] int tensor.
    id_len: a [B, ] int tensor.
    padding_value: an int.
  Returns:
    new_ids: new ids with the property.
      - new_ids[b, :id_len[b]] = ids[b, :id_len[b]]
      - new_ids[b, id_len[b]:] = padding_value
  """
  mask = py_utils.SequencePaddings(id_len, maxlen=tf.shape(ids)[1])
  mask = tf.cast(mask, dtype=tf.bool)
  new_ids = tf.where(mask, tf.fill(tf.shape(ids), padding_value), ids)
  return new_ids