code: def test_group_by_count(self):
      assert util.group_by_count([1, 2, 3, 4, 5, 6, 7], 3, 20) == [
          [1, 2, 3],
          [4, 5, 6],
          [7, 20, 20],
      ]
  
imports: from datetime import timedelta
  import sys
  from collections import OrderedDict
  import pytest
  import torch
  from allennlp.common import util
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.common.util import push_python_path
label_desc: Use image node_id 1 for calling the TestCommonUtils obj's underlying member method code with example usage: obj.test_group_by_count() without return types