code: def test_parser_annotation_len_mismatch(data):
      class BrokenParser(SimpleParser):
          def labels(self, o) -> List[Hashable]:
              return o["labels"][:1]
  
      parser = BrokenParser(data)
  
      with pytest.raises(RuntimeError) as err:
          records = parser.parse(data_splitter=SingleSplitSplitter())[0]
      assert "inconsistent number of annotations" in str(err)
  
file_path: icevision/tests/parsers/test_parser.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_parser_annotation_len_mismatch(data) and returns: o