code: def test_record_num_annotations(record):
      assert record.num_annotations() == {
          "common": {},
          # "detection": {"labels": 2, "bboxes": 2, "masks": 2}, # see 868
          "detection": {"labels": 2, "bboxes": 2},
      }
  
file_path: icevision/tests/core/test_record.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 10 for calling a global function with example usage: test_record_num_annotations(record) without return types