class_docstr: A stub TokenIndexer that returns multiple arrays of different lengths.
class_docstr_tok: ["A","stub","TokenIndexer","that","returns","multiple","arrays","of","different","lengths","."]
code: def pad_token_sequence(
      self, tokens, desired_num_tokens, padding_lengths
  ):  # pylint: disable=unused-argument
      return dict(
          (key, pad_sequence_to_length(val, desired_num_tokens[key]))
          for key, val in list(tokens.items())
      )
  
imports: from __future__ import with_statement
  from __future__ import absolute_import
  from __future__ import print_function
  from collections import defaultdict
  import pytest
  import numpy
  from allennlp.data import Token, Vocabulary
  from allennlp.data.fields import TextField
  from allennlp.data.token_indexers import SingleIdTokenIndexer, TokenCharactersIndexer, TokenIndexer
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.util import pad_sequence_to_length
label_desc: Use image node_id 5 for calling the DictReturningTokenIndexer obj's underlying member method code with example usage: obj.pad_token_sequence(tokens, desired_num_tokens, padding_lengths) and returns: dict