code: def test_pad_list():
      xs = [[1, 2, 3], [1, 2], [1, 2, 3, 4]]
      xs = list(map(lambda x: torch.LongTensor(x), xs))
      xpad = pad_list(xs, -1)
  
      es = [[1, 2, 3, -1], [1, 2, -1, -1], [1, 2, 3, 4]]
      assert xpad.data.tolist() == es
  
imports: import torch
  from espnet.nets.pytorch_backend.nets_utils import pad_list
label_desc: Use image node_id 1 for calling a global function with example usage: test_pad_list() without return types