code: def test_chunk_dict():
      d = {i: i for i in range(10)}
      assert list(_chunk_dict(d, 4)) == [
          {i: i for i in range(4)},
          {i: i for i in range(4, 8)},
          {i: i for i in range(8, 10)},
      ]
      assert list(_chunk_dict(d, 5)) == [
          {i: i for i in range(5)},
          {i: i for i in range(5, 10)},
      ]
      assert list(_chunk_dict(d, len(d))) == [d]
      assert list(_chunk_dict(d, len(d) + 1)) == [d]
  
file_path: mlflow/tests/utils/test_utils.py
imports: from unittest import mock
  import pytest
  from mlflow.utils import _chunk_dict, _get_fully_qualified_class_name, _truncate_dict, get_unique_resource_id, merge_dicts
label_desc: Use image node_id 5 for calling a global function with example usage: test_chunk_dict() without return types