code: def get_rectangles_table_link(self, source, target):
      if hasattr(source.callback.inputs[0], "crs"):
          return RectanglesTableLink(source, target)
      else:
          return HvRectanglesTableLink(source, target)
  
file_path: geoviews/geoviews/annotators.py
imports: import param
  import cartopy.crs
  from holoviews.annotators import annotate, Annotator, PathAnnotator, PolyAnnotator, PointAnnotator, RectangleAnnotator
  from holoviews.plotting.links import DataLink, VertexTableLink
  from panel.util import param_name
  from .element import Path
  from .models.custom_tools import CheckpointTool, RestoreTool, ClearTool
  from .links import VertexTableLink, PointTableLink, HvRectanglesTableLink, RectanglesTableLink
  from .operation import project
  from .streams import PolyVertexDraw, PolyVertexEdit
label_desc: Use image node_id 2 for calling a global function with example usage: get_rectangles_table_link(source, target) and returns: RectanglesTableLink, HvRectanglesTableLink