code: def link_all_refs(defs: TypeDefs) -> None:
      for ref in Ref.all_refs:
          ref.linked = True
          ref.defn = defs[ref.name]
  
imports: import json
  import logging
  import sys
  import typing
  from dataclasses import dataclass, field
  import typing_extensions
label_desc: Use image node_id 7 for calling a global function with example usage: link_all_refs(defs) without return types