code: def _copy_source(source_path, dest_path, replace_existing=False):
      def copy():
          if os.path.isdir(source_path):
              util.copytree(source_path, dest_path)
          else:
              util.copyfile(source_path, dest_path)
  
      _gen_apply_source(source_path, dest_path, replace_existing, copy)
  
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 35 for calling a global function with example usage: _copy_source(source_path, dest_path, replace_existing) without return types