code: def _source_rel_path(source, dest_path):
      source_dir, source_name = os.path.split(source)
      real_path = util.realpath(dest_path)
      path_dir = os.path.dirname(real_path)
      source_rel_dir = os.path.relpath(source_dir, path_dir)
      return os.path.join(source_rel_dir, source_name)
  
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 37 for calling a global function with example usage: _source_rel_path(source, dest_path) and returns: os