code: def test_list_to_dict() -> None:
      r = det.util._list_to_dict([{"a": 1}, {"b": 2}, {"a": 2}])
      assert r == {"a": [1, 2], "b": [2]}
  
file_path: determined/harness/tests/test_util.py
imports: import os
  import pathlib
  from typing import Optional
  import numpy
  import pytest
  import determined
  from determined import util
  from tests import filetree
label_desc: Use image node_id 1 for calling a global function with example usage: test_list_to_dict() without return types