code: def test_pad_nested_sequences(self):
      sequences = [
          [[1, 2, 3, 4], [1, 2], [1], [1, 2, 3]],
          [[1, 2, 3, 4, 5], [1, 2], [1, 2, 3, 4]],
      ]
      expected_seq = [
          [
              [1, 2, 3, 4, 0],
              [1, 2, 0, 0, 0],
              [1, 0, 0, 0, 0],
              [1, 2, 3, 0, 0],
          ],
          [
              [1, 2, 3, 4, 5],
              [1, 2, 0, 0, 0],
              [1, 2, 3, 4, 0],
              [0, 0, 0, 0, 0],
          ],
      ]
      padded_seq = pad_nested_sequences(sequences)
      np.testing.assert_equal(padded_seq, expected_seq)
  
      sequences = [[[1, 2], [1]]]
      expected_seq = [[[1, 2], [1, 0]]]
      padded_seq = pad_nested_sequences(sequences)
      np.testing.assert_equal(padded_seq, expected_seq)
  
      sequences = [[[1], []]]
      expected_seq = [[[1], [0]]]
      padded_seq = pad_nested_sequences(sequences)
      np.testing.assert_equal(padded_seq, expected_seq)
  
      sequences = [[[1]]]
      expected_seq = [[[1]]]
      padded_seq = pad_nested_sequences(sequences)
      np.testing.assert_equal(padded_seq, expected_seq)
  
      sequences = [[[]]]
      expected_seq = [[[]]]
      padded_seq = pad_nested_sequences(sequences)
      np.testing.assert_equal(padded_seq, expected_seq)
  
imports: import os
  import shutil
  import unittest
  import numpy
  from anago.preprocessing import IndexTransformer, pad_nested_sequences
label_desc: Use image node_id 1 for calling the TestPadding obj's underlying member method code with example usage: obj.test_pad_nested_sequences() without return types