(dataset_indices, chunk_size, placeholder_dataset_id)
Pads `dataset_indices` with placeholders so it has length `chunk_size`.

  Args:
    dataset_indices: list of (dataset_id, num_repeats) tuples representing a
      sequence of dataset IDs.
    chunk_size: int, size to pad to.
    placeholder_dataset_id: int, placeholder value to pad with.
Pads `dataset_indices` with placeholders so it has length `chunk_size`.
Pads dataset_indices with placeholders so it has length chunk_size .
def _pad(dataset_indices, chunk_size, placeholder_dataset_id):
  """Pads `dataset_indices` with placeholders so it has length `chunk_size`.

  Args:
    dataset_indices: list of (dataset_id, num_repeats) tuples representing a
      sequence of dataset IDs.
    chunk_size: int, size to pad to.
    placeholder_dataset_id: int, placeholder value to pad with.
  """
  pad_size = chunk_size - sum(n for i, n in dataset_indices)
  assert pad_size >= 0
  dataset_indices.append([placeholder_dataset_id, pad_size])
def _pad ( dataset_indices , chunk_size , placeholder_dataset_id ) : pad_size = chunk_size - sum ( n for i , n in dataset_indices ) assert pad_size >= 0 dataset_indices . append ( [ placeholder_dataset_id , pad_size ] )