code: def register_type_link(cls: type[Any]) -> Callable[[Fn], Fn]:
      def decorator(func: Fn):
          _type_links[cls] = func
          return func
  
      return decorator
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Callable
label_desc: Use image node_id 3 for calling a global function with example usage: register_type_link(cls) and returns: decorator, func