code: def test_get_padding_lengths_correctly_returns_ordered_shape(self):
      shape = [3, 4, 5, 6]
      array = numpy.zeros(shape)
      array_field = ArrayField(array)
      lengths = array_field.get_padding_lengths()
      for i in range(len(lengths)):
          assert lengths["dimension_{}".format(i)] == shape[i]
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/fields/array_field_test.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  import numpy
  from allennlp.common.testing.test_case import AllenNlpTestCase
  from allennlp.data.fields import ArrayField, ListField
label_desc: Use image node_id 1 for calling the TestArrayField obj's underlying member method code with example usage: obj.test_get_padding_lengths_correctly_returns_ordered_shape() without return types