code: def test_partition_list():
      assert py_datastructures.partition_list(list(range(10)), 5) == [
          [0, 1],
          [2, 3],
          [4, 5],
          [6, 7],
          [8, 9],
      ]
      assert py_datastructures.partition_list(list(range(10)), 3) == [
          [0, 1, 2, 3],
          [4, 5, 6, 7],
          [8, 9],
      ]
      assert py_datastructures.partition_list(list(range(10)), 1) == [
          [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
      ]
  
file_path: jiant/tests/utils/python/test_datastructures.py
imports: import json
  import pytest
  from dataclasses import dataclass
  import jiant.utils.python.datastructures
label_desc: Use image node_id 6 for calling a global function with example usage: test_partition_list() without return types