code: def record_missing_reference(app, record, node):
      domain = node["refdomain"]
      typ = node["reftype"]
      target = node["reftarget"]
      location = get_location(node, app)
  
      domain_type = f"{domain}:{typ}"
  
      record[(domain_type, target)].add(location)
  
imports: from collections import defaultdict
  import json
  import logging
  from pathlib import Path
  from docutils.utils import get_source_line
  from docutils import nodes
  from sphinx.util import logging
  import matplotlib
label_desc: Use image node_id 1 for calling a global function with example usage: record_missing_reference(app, record, node) without return types