code: def test_get_padded_numpy_array():
      a = [[1, 2, 3], [3]]
      a = get_padded_numpy_array(a, dtype=int, pad_val=-1)
      assert a.shape == (2, 3)
  
      a = [[[1], [2], [3, 4]], [[2, 3, 4]]]
      a = get_padded_numpy_array(a, dtype=int, pad_val=-1)
      assert a.shape == (2, 3, 3)
  
      a = [[[1], [2], [3, 4]], [[]]]
      a = get_padded_numpy_array(a, dtype=int, pad_val=-1)
      assert a.shape == (2, 3, 2)
  
file_path: fastNLP/tests/core/collators/padders/test_utils.py
imports: import pytest
  import numpy
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
  from fastNLP.core.collators.padders.utils import get_shape, get_padded_numpy_array, get_padded_nest_list, is_number_or_numpy_number, is_numpy_number_dtype, is_number
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_padded_numpy_array() without return types