code: def test_normalize_metadata_list_of_wrong_size():
      with pytest.raises(
          ValueError,
          match="The length of the metadata list must match the number of sources.",
      ):
          normalize_metadata([{"a": 1}], sources_count=3)
      with pytest.raises(
          ValueError,
          match="The length of the metadata list must match the number of sources.",
      ):
          assert normalize_metadata(
              [{"a": 1}, {"b": 2}, {"c": 3}], sources_count=1
          )
  
imports: import pytest
  from haystack.components.converters.utils import normalize_metadata
label_desc: Use image node_id 4 for calling a global function with example usage: test_normalize_metadata_list_of_wrong_size() without return types