code: def num_annotations(self) -> Dict[str, dict]:
      return self.reduce_on_components(
          "_num_annotations", reduction="update"
      )
  
file_path: icevision/icevision/core/record.py
imports: from icevision.imports import *
  from icevision.utils import *
  from icevision.core.exceptions import *
  from icevision.core.components import *
  from icevision.core.record_components import *
label_desc: Use image node_id 2 for calling the BaseRecord obj's underlying member method code with example usage: obj.num_annotations() and returns: self