code: def _link_to_source(source_path, dest_path, replace_existing=False):
      def link():
          source_rel_path = _source_rel_path(source_path, dest_path)
          try:
              util.symlink(source_rel_path, dest_path)
          except OSError as e:
              _handle_source_link_error(e)
  
      _gen_apply_source(source_path, dest_path, replace_existing, link)
  
imports: import os
  import re
  import logging
  import typing
  from guild import cli
  from guild import resolver
  from guild import resourcedef
  from guild import util
label_desc: Use image node_id 36 for calling a global function with example usage: _link_to_source(source_path, dest_path, replace_existing) without return types